/* NexGen-style landing for Luck */
html[data-route="/"],
html[data-route="/"] body,
body.ng-home {
  background: #000 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
}
html[data-route="/"] #app,
body.ng-home #app {
  display: none !important;
}
html[data-route="/"] .malio-theme,
body.ng-home .malio-theme,
html[data-route="/"] .loading-container,
body.ng-home .loading-container,
html[data-route="/"] #purchase,
body.ng-home #purchase,
html[data-route="/"] .purchase,
body.ng-home .bg-gr {
  display: none !important;
}

#ng-landing {
  display: none;
  color: #fff;
  font-family: Inter, "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020510;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
body.ng-home #ng-landing,
html[data-route="/"] #ng-landing {
  display: block;
}

.ng-nav {
  position: fixed;
  z-index: 80;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 0 22px;
  background: rgba(31, 31, 31, .94);
  border: 1px solid rgba(66, 66, 66, .3);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}
.ng-logo {
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(to right, #fff, #d1d5db);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  flex-shrink: 0;
}
.ng-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ng-nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.ng-nav-links a:hover { color: #fff; }
.ng-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ng-lang {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  cursor: default;
}
.ng-btn-login {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.ng-btn-login:hover { background: rgba(255,255,255,.08); }
.ng-btn-reg {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.ng-btn-reg:hover { filter: brightness(1.08); }

.ng-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ng-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, #0f172a);
  z-index: 6;
  pointer-events: none;
}
.earth-scene {
  position: absolute;
  inset: 0;
  background: radial-gradient(#0a0a2e, #000510 60%, #000);
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}
.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 40% 8%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 55% 22%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 70% 42%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 85% 12%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 18% 72%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 62% 78%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.2px 1.2px at 88% 68%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 33% 88%, rgba(255,255,255,.55), transparent);
  pointer-events: none;
}
.planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  transform: translateY(90px) rotate(12deg) scale(2.55);
}
.earth-model,
.earth-texture-viewport {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
}
.earth-model {
  box-shadow: 0 0 24px rgba(150, 186, 255, .28);
}
.earth-texture-viewport {
  position: relative;
}
.earth-textures {
  width: 2080px;
  height: 520px;
  background-color: rgba(0, 18, 77, .18);
  background-image: url("/assets/ng/earth_nightmap.webp?v=2");
  background-repeat: repeat-x;
  background-size: 50% 100%;
  animation: ng-earth-rotate 80s linear infinite;
  animation-delay: -22s;
  will-change: transform;
}
@keyframes ng-earth-rotate {
  from { transform: translateX(0); }
  to { transform: translateX(-1040px); }
}
.ng-offscreen .earth-textures,
.ng-offscreen .ng-marquee-track,
.ng-offscreen .ng-line-dash,
.ng-hidden .earth-textures,
.ng-hidden .ng-marquee-track,
.ng-hidden .ng-line-dash {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  .earth-textures,
  .ng-marquee-track,
  .ng-line-dash {
    animation: none !important;
  }
}

.ng-hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  width: 100%;
  min-width: 0;
  max-width: min(920px, 100%);
  padding: 120px 20px 80px;
  box-sizing: border-box;
}
.ng-hero h1,
.ng-hero h2,
.ng-hero .sub1,
.ng-hero .sub2,
.ng-hero-ctas {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal !important;
}
.ng-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15 !important;
  color: #fff;
}
.ng-hero h1 span {
  display: inline-block;
  background: linear-gradient(to right, #eff6ff, #e9d5ff, #fce7f3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ng-hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2 !important;
  color: #fff;
}
.ng-hero h2 span {
  display: inline-block;
  background: linear-gradient(to right, #fce7f3, #e9d5ff, #dbeafe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ng-hero .sub1,
.ng-hero .sub2 {
  display: block;
  margin: 0 auto 8px;
  font-size: clamp(14px, 3.6vw, 18px);
  font-weight: 500;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ng-hero .sub1 {
  background-image: linear-gradient(to right, #67e8f9, #93c5fd, #d8b4fe);
}
.ng-hero .sub2 {
  margin: 0 auto 28px;
  background-image: linear-gradient(to right, #6ee7b7, #5eead4, #67e8f9);
}
.ng-hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ng-cta-primary {
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(to right, #3b82f6, #a855f7, #ec4899);
}
.ng-cta-secondary {
  padding: 12px 30px;
  border-radius: 999px;
  border: 2px solid rgba(34, 211, 238, .5);
  color: #67e8f9;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(34, 211, 238, .08);
}

.ng-marquee-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ng-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ng-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ng-marquee 42s linear infinite;
}
.ng-marquee.reverse .ng-marquee-track {
  animation-direction: reverse;
  animation-duration: 48s;
}
@keyframes ng-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ng-logo-card {
  width: 86px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ng-logo-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.ng-logo-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.ng-logo-card span {
  font-size: 12px;
  color: #cbd5e1;
}

.ng-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 12px;
}
.ng-scroll-hint:after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: ng-mouse 1.4s ease-in-out infinite;
}
@keyframes ng-mouse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .3; transform: translateY(8px); }
}

.ng-section {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 132px 20px 88px;
  scroll-margin-top: 108px;
  background: #0f172a;
}
.ng-features {
  background: #0f172a;
}
.ng-panel {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 48px 28px 56px;
  background: rgba(15, 23, 42, .96);
  overflow: visible;
}
.ng-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.25 !important;
}
.ng-title span {
  display: inline-block;
}
.ng-title.cyan span,
.ng-title.purple span,
.ng-title.green span,
.ng-title.blue span {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ng-title.cyan span { background-image: linear-gradient(to right, #22d3ee, #60a5fa); }
.ng-title.purple span { background-image: linear-gradient(to right, #c084fc, #f472b6); }
.ng-title.green span { background-image: linear-gradient(to right, #34d399, #22d3ee); }
.ng-title.blue span { background-image: linear-gradient(to right, #60a5fa, #c084fc, #22d3ee); }
.ng-lead {
  text-align: center;
  color: #d1d5db;
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 40px;
}

.ng-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ng-feat-card {
  background: rgba(30, 41, 59, .7);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  min-height: 224px;
  transition: transform .25s ease, background .25s ease;
}
.ng-feat-card:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(51, 65, 85, .75);
}
.ng-feat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: #4ade80;
}
.ng-feat-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.ng-feat-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}

.ng-center-cta { text-align: center; margin-top: 36px; }
.ng-center-cta a {
  display: inline-flex;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(to right, #3b82f6, #a855f7);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.ng-network {
  background: #0b1224;
  text-align: center;
}
.ng-network > h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.25;
}
.ng-network > h2 span {
  display: inline-block;
  background-image: linear-gradient(to right, #22d3ee, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ng-chip {
  display: inline-flex;
  margin: 18px auto 36px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15, 23, 42, .75);
  color: #cbd5e1;
  font-size: 13px;
}
.ng-flow {
  position: relative;
  max-width: 1100px;
  height: 460px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 28px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  background: rgba(15, 23, 42, .55);
  overflow: hidden;
}
.ng-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.ng-line {
  fill: none;
  stroke-width: 2.2;
  opacity: .8;
}
.ng-line-dash {
  fill: none;
  stroke-width: 2.2;
  stroke-dasharray: 8 14;
  animation: ng-flow-dash 2.6s linear infinite;
  opacity: .95;
}
@keyframes ng-flow-dash {
  to { stroke-dashoffset: -44; }
}
.ng-flow-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}
.ng-flow-user { justify-content: center; }
.ng-flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ng-node {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 24px rgba(34, 211, 238, .12);
  background: #0f172a;
}
.ng-node.user { background: #0f3f4c; color: #67e8f9; }
.ng-node.bolt { background: #172554; color: #60a5fa; }
.ng-node.lock { background: #1e1b4b; color: #c4b5fd; }
.ng-node.srv { background: #3b0764; color: #e879f9; width: 72px; height: 72px; }
.ng-flow-item small { color: #cbd5e1; font-size: 13px; }

.ng-stats { background: #0f172a; }
.ng-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 48px;
  text-align: center;
}
.ng-stat-num {
  display: inline-block;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(to right, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ng-stat-label { color: #94a3b8; margin-top: 6px; }
.ng-flags {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.ng-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, .55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 12px;
}
.ng-flag img { width: 28px; height: auto; border-radius: 3px; }
.ng-flag b { display: block; font-size: 14px; }
.ng-flag span { color: #94a3b8; font-size: 12px; }

.ng-pricing { background: #0f172a; }
.ng-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.ng-plan {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 28px;
}
.ng-plan h3 { margin: 0 0 12px; font-size: 22px; }
.ng-plan .price {
  font-size: 40px;
  font-weight: 800;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
}
.ng-plan .price small { font-size: 16px; color: #94a3b8; font-weight: 500; }
.ng-plan .desc { color: #cbd5e1; margin: 8px 0 18px; }
.ng-plan li {
  list-style: none;
  margin: 8px 0;
  color: #e2e8f0;
}
.ng-plan ul { padding: 0; margin: 0 0 22px; }
.ng-plan .ok { color: #4ade80; margin-right: 8px; }
.ng-plan a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(to right, #a855f7, #ec4899);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ng-support,
#ng-landing #support {
  background: #0f172a !important;
}
.ng-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.ng-support-card {
  background: rgba(30, 41, 59, .55);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
}
.ng-support-card h3 { margin: 12px 0 8px; }
.ng-support-card p { color: #cbd5e1; font-size: 14px; }
.ng-support-card a {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .4);
  color: #67e8f9;
  text-decoration: none;
  font-size: 14px;
}

.ng-footer,
#ng-landing footer.ng-footer {
  padding: 32px 20px 48px !important;
  text-align: center;
  color: #64748b !important;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #020510 !important;
  background-image: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  position: relative;
  z-index: 2;
}
#ng-landing footer.ng-footer:after,
#ng-landing .ng-footer:after {
  display: none !important;
  content: none !important;
  background: none !important;
  transform: none !important;
}

@media (max-width: 980px) {
  .ng-nav-links { display: none; }
  .ng-feat-grid, .ng-stat-grid, .ng-support-grid, .ng-flags {
    grid-template-columns: 1fr 1fr;
  }
  .ng-flow {
    height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .ng-flow-lines { display: none; }
  .planet { transform: translateY(40px) rotate(10deg) scale(1.8); }
}
@media (max-width: 640px) {
  .ng-feat-grid, .ng-stat-grid, .ng-support-grid, .ng-flow, .ng-flags {
    grid-template-columns: 1fr;
  }
  .ng-lang { display: none; }
  .ng-section { padding-top: 112px; scroll-margin-top: 96px; }
  .ng-hero-content { padding: 96px 16px 56px; }
  .ng-hero h1 { font-size: clamp(32px, 11vw, 44px) !important; }
  .ng-hero h2 { font-size: clamp(22px, 8vw, 32px) !important; }
  .ng-hero .sub1,
  .ng-hero .sub2 { font-size: 14px !important; line-height: 1.55 !important; }
  .ng-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
  }
  .ng-cta-primary,
  .ng-cta-secondary { text-align: center; }
  .planet { transform: translateY(70px) rotate(10deg) scale(1.35); }
}
