:root{
  --nx-bg:#050914;
  --nx-bg2:#08111f;
  --nx-panel:rgba(12,22,38,.78);
  --nx-panel2:rgba(16,30,50,.72);
  --nx-line:rgba(132,190,255,.14);
  --nx-line2:rgba(110,231,255,.24);
  --nx-text:#f3f8ff;
  --nx-muted:#91a4bc;
  --nx-cyan:#49dcff;
  --nx-blue:#5b79ff;
  --nx-violet:#9367ff;
  --nx-green:#67f0b0;
  --nx-gold:#ffd66b;
  --nx-danger:#ff7185;
  --nx-radius:22px;
  --nx-shadow:0 28px 80px rgba(0,0,0,.42);
  --nx-max:1240px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  background:var(--nx-bg);
}

body{
  margin:0;
  color:var(--nx-text);
  background:
    radial-gradient(circle at 12% -8%,rgba(53,122,255,.18),transparent 35%),
    radial-gradient(circle at 88% 12%,rgba(120,61,255,.14),transparent 30%),
    linear-gradient(180deg,#050914,#07101c 55%,#050914);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.13;
  background-image:
    linear-gradient(rgba(112,180,255,.09) 1px,transparent 1px),
    linear-gradient(90deg,rgba(112,180,255,.09) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}

a{
  color:inherit;
}

img,
video,
iframe{
  max-width:100%;
}

button,
input,
select,
textarea{
  font:inherit;
}

::selection{
  background:rgba(73,220,255,.22);
  color:white;
}

/* Shared content polish */
main,
.page,
.container,
.wrap{
  position:relative;
}

section{
  scroll-margin-top:95px;
}

h1{
  letter-spacing:-.04em;
  line-height:1.02;
}

h2{
  letter-spacing:-.025em;
}

p{
  line-height:1.7;
}

.card,
.nd2-card,
.nd2-plan-card,
.feature,
.service-card{
  border-color:var(--nx-line)!important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 20px 55px rgba(0,0,0,.2);
  backdrop-filter:blur(16px);
  transition:
    transform .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}

@media (hover:hover){
  .card:hover,
  .nd2-card:hover,
  .nd2-plan-card:hover,
  .feature:hover,
  .service-card:hover{
    transform:translateY(-5px);
    border-color:var(--nx-line2)!important;
    box-shadow:
      0 28px 70px rgba(0,0,0,.34),
      0 0 35px rgba(73,220,255,.055);
  }
}

button,
.btn,
.nd2-btn,
a.btn{
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

@media (hover:hover){
  button:not(:disabled):hover,
  .btn:hover,
  .nd2-btn:not(:disabled):hover{
    transform:translateY(-2px);
  }
}

/* premium readable text widths */
.hero p,
.nd2-lead{
  max-width:760px;
}

/* mobile touch quality */
a,
button{
  -webkit-tap-highlight-color:transparent;
}

/* fixed mobile dock */
.nx-mobile-dock{
  display:none;
}

/* Mobile control panel */
.nx-mobile-trigger{
  display:none;
  position:fixed;
  right:16px;
  bottom:86px;
  z-index:10002;
  width:54px;
  height:54px;
  border:1px solid rgba(102,221,255,.3);
  border-radius:18px;
  color:white;
  background:
    linear-gradient(145deg,rgba(27,55,88,.98),rgba(12,24,42,.98));
  box-shadow:
    0 18px 45px rgba(0,0,0,.48),
    0 0 24px rgba(73,220,255,.11);
  cursor:pointer;
}

.nx-mobile-panel{
  display:none;
  position:fixed;
  inset:0;
  z-index:10001;
  background:rgba(2,7,15,.72);
  backdrop-filter:blur(16px);
}

.nx-mobile-panel.open{
  display:block;
}

.nx-mobile-sheet{
  position:absolute;
  right:10px;
  left:10px;
  bottom:10px;
  max-height:82vh;
  overflow:auto;
  padding:18px;
  border:1px solid rgba(111,220,255,.2);
  border-radius:26px;
  background:
    linear-gradient(180deg,rgba(13,27,47,.98),rgba(6,14,26,.99));
  box-shadow:var(--nx-shadow);
}

.nx-mobile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.nx-mobile-brand{
  font-weight:900;
  letter-spacing:.08em;
  font-size:13px;
}

.nx-mobile-close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--nx-line);
  color:white;
  background:rgba(255,255,255,.04);
}

.nx-mobile-group{
  margin-top:18px;
}

.nx-mobile-group-title{
  margin-bottom:8px;
  color:#7189a6;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}

.nx-mobile-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.nx-mobile-links a{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px 12px;
  border:1px solid var(--nx-line);
  border-radius:14px;
  text-decoration:none;
  color:#eaf5ff;
  background:rgba(255,255,255,.027);
}

.nx-mobile-links a:active{
  transform:scale(.98);
}

.nx-mobile-links a.nx-live-link{
  border-color:rgba(103,240,176,.24);
  background:rgba(103,240,176,.055);
}

.nx-mobile-bottom{
  display:none;
}

/* back to top */
.nx-backtop{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9997;
  width:44px;
  height:44px;
  opacity:0;
  pointer-events:none;
  border:1px solid var(--nx-line);
  border-radius:14px;
  background:rgba(8,19,34,.92);
  color:white;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  transition:.2s ease;
}

.nx-backtop.show{
  opacity:1;
  pointer-events:auto;
}

/* responsive tables */
table{
  max-width:100%;
}

.nx-table-scroll{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* accessibility */
.nx-skip-link{
  position:fixed;
  left:12px;
  top:-80px;
  z-index:20000;
  padding:11px 15px;
  border-radius:10px;
  background:white;
  color:#06101e;
  font-weight:800;
}

.nx-skip-link:focus{
  top:12px;
}

:focus-visible{
  outline:2px solid var(--nx-cyan)!important;
  outline-offset:3px;
}

@media(max-width:860px){
  body{
    padding-bottom:72px;
  }

  .nx-mobile-trigger{
    display:block;
  }

  .nx-mobile-bottom{
    position:fixed;
    left:8px;
    right:8px;
    bottom:8px;
    z-index:9998;
    height:58px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border:1px solid rgba(110,210,255,.16);
    border-radius:19px;
    background:rgba(7,17,31,.94);
    backdrop-filter:blur(18px);
    box-shadow:0 18px 45px rgba(0,0,0,.42);
    overflow:hidden;
  }

  .nx-mobile-bottom a,
  .nx-mobile-bottom button{
    border:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:2px;
    text-decoration:none;
    color:#93a7bf;
    background:transparent;
    font-size:10px;
    font-weight:700;
  }

  .nx-mobile-bottom strong{
    color:#e9f7ff;
    font-size:16px;
    line-height:1;
  }

  .nx-mobile-bottom .active{
    color:var(--nx-cyan);
    background:rgba(73,220,255,.055);
  }

  .nx-backtop{
    display:none;
  }

  .nd2-grid,
  .grid,
  .cards,
  .feature-grid{
    grid-template-columns:1fr!important;
  }

  h1{
    font-size:clamp(36px,11vw,58px)!important;
  }

  h2{
    font-size:clamp(27px,8vw,40px)!important;
  }

  input,
  select,
  textarea,
  button{
    min-height:46px;
  }

  table{
    min-width:720px;
  }
}

@media(max-width:480px){
  .nx-mobile-sheet{
    padding:15px;
    border-radius:22px;
  }

  .nx-mobile-links{
    grid-template-columns:1fr 1fr;
  }

  .card,
  .nd2-card,
  .nd2-plan-card{
    border-radius:18px!important;
  }
}

/* respect user preferences */
@media(prefers-reduced-motion:reduce){
  *,
  *:before,
  *:after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}


/* =========================================================
   NEXGEN PREMIUM V2
   ========================================================= */

:root{
  --nx-glass:
    linear-gradient(
      145deg,
      rgba(16,31,52,.84),
      rgba(7,17,31,.74)
    );
}

/* universal hidden-state protection */
[hidden]{
  display:none !important;
}

/* premium section rhythm */
main > section,
body > section{
  position:relative;
}

section{
  isolation:isolate;
}

section + section{
  margin-top:clamp(10px,2vw,30px);
}

/* premium gradient typography */
.nx-premium-gradient,
.hero h1 strong,
.hero h1 em{
  background:
    linear-gradient(
      100deg,
      #ffffff 0%,
      #76e9ff 44%,
      #9b81ff 100%
    );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* subtle status chips */
.nx-status-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(115,219,255,.16);
  background:rgba(115,219,255,.055);
  color:#aeefff;
  font-size:11px;
  font-weight:850;
  letter-spacing:.08em;
}

.nx-status-chip.live{
  border-color:rgba(103,240,176,.22);
  color:#8df4ba;
  background:rgba(103,240,176,.055);
}

.nx-status-chip.beta{
  border-color:rgba(255,214,107,.22);
  color:#ffe291;
  background:rgba(255,214,107,.055);
}

/* cards look less template-like */
.card,
.nd2-card,
.nd2-plan-card{
  position:relative;
  overflow:hidden;
}

.card:before,
.nd2-card:before,
.nd2-plan-card:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(112,228,255,.35),
      transparent
    );
  opacity:.7;
}

.card h2,
.card h3,
.nd2-card h3,
.nd2-plan-card h3{
  letter-spacing:-.018em;
}

/* feature icon treatment */
.card .cyan,
.feature .cyan{
  filter:drop-shadow(0 0 14px rgba(72,221,255,.19));
}

/* premium plan cards */
.nd2-plan-card{
  background:
    radial-gradient(
      circle at 85% -10%,
      rgba(79,124,255,.13),
      transparent 38%
    ),
    var(--nx-glass);
}

.nd2-plan-card.popular{
  border-color:rgba(91,185,255,.4)!important;
  box-shadow:
    0 26px 75px rgba(0,0,0,.38),
    0 0 55px rgba(64,163,255,.08);
}

.nd2-plan-card.popular:after{
  content:"RECOMMENDED";
  position:absolute;
  right:14px;
  top:14px;
  padding:5px 8px;
  border-radius:999px;
  color:#bceeff;
  background:rgba(55,183,255,.08);
  border:1px solid rgba(78,205,255,.2);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}

/* Premium form fields */
input,
select,
textarea{
  color:#f1f8ff;
  background:
    rgba(4,12,23,.7)!important;
  border-color:
    rgba(125,185,245,.16)!important;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color:
    rgba(77,217,255,.48)!important;
  box-shadow:
    0 0 0 4px rgba(77,217,255,.055);
  background:
    rgba(6,17,31,.9)!important;
}

/* premium primary CTA */
.btn.primary,
.nd2-btn:not(.secondary){
  background:
    linear-gradient(
      135deg,
      #1f8cff,
      #19cde8
    )!important;
  border-color:
    rgba(100,224,255,.42)!important;
  color:white!important;
  box-shadow:
    0 12px 32px rgba(19,148,230,.2);
}

@media (hover:hover){
  .btn.primary:hover,
  .nd2-btn:not(.secondary):hover{
    box-shadow:
      0 17px 40px rgba(19,148,230,.3);
  }
}

/* language toggle polish */
button[data-lang],
.lang button,
.language-switch button{
  border-radius:10px!important;
}

/* premium footer */
footer,
#nx-shell-footer{
  position:relative;
  margin-top:70px;
  border-top:
    1px solid rgba(117,181,239,.12)!important;
  background:
    linear-gradient(
      180deg,
      rgba(6,14,26,.3),
      rgba(3,9,18,.92)
    )!important;
}

footer:before,
#nx-shell-footer:before{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  top:-1px;
  height:1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(72,221,255,.4),
      transparent
    );
}

/* legal / utility premium frame */
body.nx-utility-page main,
body.nx-utility-page .page{
  max-width:1050px;
  margin-inline:auto;
}

.nx-utility-hero{
  margin:
    clamp(95px,10vw,135px)
    auto 30px;
  max-width:1050px;
  padding:
    clamp(25px,5vw,50px);
  border:1px solid var(--nx-line);
  border-radius:28px;
  background:
    radial-gradient(
      circle at 90% 0,
      rgba(87,98,255,.14),
      transparent 35%
    ),
    var(--nx-glass);
  box-shadow:var(--nx-shadow);
}

.nx-utility-hero small{
  display:block;
  margin-bottom:12px;
  color:var(--nx-cyan);
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
}

.nx-utility-hero h1{
  margin:0;
  font-size:
    clamp(34px,5vw,60px);
}

.nx-utility-hero p{
  max-width:720px;
  margin:
    16px 0 0;
  color:var(--nx-muted);
}

.nx-utility-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}

.nx-utility-nav a{
  padding:9px 11px;
  border-radius:10px;
  border:1px solid var(--nx-line);
  color:#c7d7e8;
  background:
    rgba(255,255,255,.025);
  text-decoration:none;
  font-size:12px;
}

/* contact action bar */
.nx-contact-actions{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:24px;
}

.nx-contact-action{
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:17px;
  border-radius:17px;
  border:1px solid var(--nx-line);
  background:
    rgba(255,255,255,.025);
  text-decoration:none;
}

.nx-contact-action strong{
  display:block;
  margin-bottom:5px;
  color:#f5faff;
}

.nx-contact-action span{
  color:var(--nx-muted);
  font-size:12px;
}

/* scroll progress */
.nx-progress{
  position:fixed;
  left:0;
  top:0;
  width:0;
  height:2px;
  z-index:20000;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      #32dcff,
      #7c67ff
    );
  box-shadow:
    0 0 15px rgba(61,214,255,.45);
}

/* page enter */
body.nx-ready .nx-page-enter{
  opacity:1;
  transform:none;
}

.nx-page-enter{
  opacity:0;
  transform:translateY(8px);
  transition:
    opacity .45s ease,
    transform .45s ease;
}

/* Data signed-out hygiene */
body:not(.nx-data-authenticated)
#nd2-account-overview{
  display:none!important;
}

body:not(.nx-data-authenticated)
#nd2-signout{
  display:none!important;
}

/* mobile */
@media(max-width:860px){
  .nx-contact-actions{
    grid-template-columns:1fr;
  }

  .nx-utility-hero{
    margin-top:88px;
    margin-inline:12px;
    border-radius:22px;
  }

  .hero,
  .nd2{
    overflow:hidden;
  }

  .hero p,
  .nd2-lead{
    font-size:15px!important;
  }

  .btn,
  .nd2-btn{
    min-height:48px;
  }

  .nd2-plan-card.popular:after{
    position:static;
    display:inline-flex;
    margin-bottom:10px;
  }
}

@media(max-width:520px){
  body{
    font-size:15px;
  }

  .nx-mobile-links{
    grid-template-columns:1fr 1fr;
  }

  .nx-mobile-links a{
    min-height:56px;
  }

  .nx-utility-hero{
    padding:23px 18px;
  }
}


/* =========================================================
   NEXGEN COMPANY / SERVICE PREMIUM CONTENT
   ========================================================= */

.nx-company-premium{
  max-width:1100px;
  margin:34px auto 0;
}

.nx-company-premium > h2{
  margin-top:34px;
}

.nx-company-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:22px;
}

.nx-company-grid .card{
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  padding:24px;
}

.nx-company-grid .card h3{
  margin-top:0;
}

.nx-company-grid .card p{
  color:var(--nx-muted);
  flex:1;
}

.nx-company-grid .card .btn{
  margin-top:12px;
}

.nx-support-note{
  margin:22px 0;
  padding:20px 22px;
  border:1px solid rgba(255,214,107,.18);
  border-radius:17px;
  background:rgba(255,214,107,.045);
}

.nx-support-note strong{
  color:var(--nx-gold);
}

.nx-support-note p{
  margin-bottom:0;
  color:var(--nx-muted);
}

@media(max-width:760px){

  .nx-company-grid{
    grid-template-columns:1fr;
  }

  .nx-company-grid .card{
    min-height:auto;
    padding:19px;
  }

}


/* =========================================================
   NEXGEN PREMIUM INFO SYSTEM
   ========================================================= */

.nx-premium-info{
  width:min(1120px,calc(100% - 32px));
  margin:42px auto 72px;
  padding:clamp(24px,5vw,52px);
  border:1px solid rgba(115,194,255,.14);
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 0,
      rgba(102,80,255,.14),
      transparent 34%),
    linear-gradient(145deg,
      rgba(14,28,48,.82),
      rgba(6,15,28,.78));
  box-shadow:0 30px 90px rgba(0,0,0,.3);
}

.nx-info-kicker{
  color:var(--nx-cyan);
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
}

.nx-premium-info h2{
  max-width:780px;
  margin:10px 0 14px;
  font-size:clamp(30px,5vw,52px);
  line-height:1.08;
}

.nx-info-lead{
  max-width:780px;
  color:var(--nx-muted);
  font-size:16px;
}

.nx-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
}

.nx-info-card{
  min-height:200px;
  padding:22px;
  border:1px solid rgba(115,194,255,.11);
  border-radius:20px;
  background:rgba(255,255,255,.025);
}

.nx-info-card > span{
  display:inline-block;
  margin-bottom:14px;
  color:#6ee5ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}

.nx-info-card h3{
  margin:0 0 9px;
}

.nx-info-card p{
  color:var(--nx-muted);
}

.nx-info-card .btn{
  margin-top:8px;
}

.nx-security-note{
  margin:22px 0;
  padding:18px 20px;
  border:1px solid rgba(255,213,105,.18);
  border-radius:16px;
  background:rgba(255,213,105,.045);
}

.nx-security-note strong{
  color:var(--nx-gold);
}

.nx-security-note p{
  margin-bottom:0;
  color:var(--nx-muted);
}

@media(max-width:720px){

  .nx-premium-info{
    width:calc(100% - 20px);
    margin-top:24px;
    padding:22px 16px;
    border-radius:21px;
  }

  .nx-info-grid{
    grid-template-columns:1fr;
  }

  .nx-info-card{
    min-height:auto;
  }
}
