/* ==========================================================
   NEXACORE V6.5.0
   FINAL SHOWROOM POLISH
   ========================================================== */

:root{
  --nx650-cyan:#55ddf5;
  --nx650-cyan-soft:rgba(85,221,245,.12);
  --nx650-violet:#9b7cff;
  --nx650-green:#63e4ad;
  --nx650-red:#ff3159;
  --nx650-line:rgba(67,127,150,.31);
  --nx650-line-hot:rgba(84,218,244,.52);
  --nx650-panel:rgba(6,20,30,.88);
  --nx650-panel-2:rgba(8,26,37,.86);
  --nx650-text:#edfaff;
  --nx650-muted:#89a4b1;
  --nx650-radius:14px;
  --nx650-ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- 01. GLOBAL FINISH ---------- */

html{
  scroll-behavior:smooth;
  text-rendering:optimizeLegibility;
}

body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid var(--nx650-cyan)!important;
  outline-offset:3px!important;
}

:where(button,a,.btn,.cta,.nx-action,.ops-action,.nexa-profile-link,.tiktok-link){
  transition:
    transform .19s var(--nx650-ease),
    border-color .19s var(--nx650-ease),
    background-color .19s var(--nx650-ease),
    color .19s var(--nx650-ease),
    box-shadow .19s var(--nx650-ease),
    opacity .19s var(--nx650-ease);
}

:where(button,a,.btn,.cta,.nx-action,.ops-action,.nexa-profile-link,.tiktok-link):active{
  transform:translateY(0) scale(.985);
}

/* ---------- 02. HEADER / COMMAND BAR ---------- */

.topbar,
header.top{
  isolation:isolate;
}

.topbar .topbar-inner,
.top .topin{
  gap:18px!important;
}

.topbar nav,
.topbar .nav,
.topbar .top-actions,
.top .actions{
  align-items:center!important;
}

.topbar :where(a,button),
.top :where(a,button){
  line-height:1.15!important;
}

.topbar .top-actions > :where(a,button),
.top .actions > :where(a,button){
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.topbar .langs,
.top .langs{
  min-height:38px!important;
  align-items:center!important;
}

.topbar .lang-btn,
.top .lang{
  min-width:31px!important;
  min-height:31px!important;
  display:inline-grid!important;
  place-items:center!important;
}

.nexa-qa-nav,
.nexa-support-btn{
  min-height:38px!important;
}

@media(min-width:1080px){
  .topbar .top-actions,
  .top .actions{
    gap:7px!important;
  }
}

/* ---------- 03. HERO ---------- */

.hero{
  position:relative;
}

.hero :where(h1,h2){
  text-wrap:balance;
}

.hero .grad{
  background-size:210% 100%!important;
  animation:nexa650HeroGradient 9s ease-in-out infinite alternate;
}

.hero-copy > p,
.hero > .wrap > p{
  max-width:860px;
}

.hero-actions{
  gap:10px!important;
}

.hero-actions :where(.btn,button,a){
  min-height:44px!important;
  border-radius:12px!important;
}

.hero-actions :where(.btn,button,a):hover{
  transform:translateY(-2px);
}

.hero-actions :where(.btn,button,a):first-child{
  box-shadow:
    0 10px 30px rgba(0,0,0,.20),
    0 0 22px rgba(73,217,244,.09);
}

/* ---------- 04. FILTERS ---------- */

.filters{
  gap:8px!important;
}

.filters button,
.filter{
  min-height:38px!important;
  border-radius:10px!important;
}

.filters button:hover,
.filter:hover{
  transform:translateY(-1px);
}

/* ---------- 05. PROJECT CARDS ---------- */

#projectGrid,
.project-grid{
  align-items:stretch!important;
}

.project-card{
  min-width:0!important;
  height:100%;
  border-radius:var(--nx650-radius)!important;
  transition:
    transform .22s var(--nx650-ease),
    border-color .22s var(--nx650-ease),
    box-shadow .22s var(--nx650-ease),
    background-color .22s var(--nx650-ease)!important;
}

.project-card:hover{
  transform:translateY(-3px)!important;
  border-color:rgba(71,170,200,.44)!important;
  box-shadow:
    0 16px 38px rgba(0,0,0,.20),
    0 0 26px rgba(70,208,235,.045)!important;
}

.project-card .project-head{
  min-height:50px!important;
  align-items:flex-start!important;
}

.project-card .picon,
.project-card .picon.nx-project-icon{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  flex:0 0 48px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:12px!important;
}

.project-card .picon svg,
.project-card .nx-project-icon svg{
  width:27px!important;
  height:27px!important;
  display:block!important;
  margin:auto!important;
}

.project-card .status{
  min-height:28px!important;
  padding:6px 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
}

.project-card h3{
  min-height:2.35em;
  display:flex;
  align-items:flex-start;
}

.project-card p{
  min-height:4.55em;
}

.project-card .tags{
  min-height:29px;
  align-content:flex-start;
}

.project-card .btn{
  min-height:41px!important;
  margin-top:auto!important;
}

.project-card [class*="flow"],
.project-card [class*="workflow"]{
  line-height:1.35!important;
  letter-spacing:.03em;
}

/* ---------- 06. SERVICES ---------- */

.services article{
  border-radius:var(--nx650-radius)!important;
  transition:
    transform .2s var(--nx650-ease),
    border-color .2s var(--nx650-ease),
    box-shadow .2s var(--nx650-ease)!important;
}

.services article:hover{
  transform:translateY(-2px);
  border-color:rgba(65,151,180,.40)!important;
}

/* ---------- 07. GENERATOR / MODALS / WORKSPACES ---------- */

.nx60-generator,
.nx60-arch-card,
.ops-modal,
.workspace-shell,
.nx-sheet-card{
  box-shadow:
    0 24px 70px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.018);
}

.nx60-arch-card,
.ops-modal,
.nx-sheet-card{
  border-radius:18px!important;
}

.nx60-modal-close,
.nx60-close,
.ops-close{
  border-radius:11px!important;
}

.nx60-modal-close:hover,
.nx60-close:hover,
.ops-close:hover{
  transform:rotate(3deg) scale(1.04);
}

.ops-nav button{
  border-radius:9px!important;
}

.ops-panel{
  border-radius:12px!important;
}

.ops-table,
.nx60-arch-body{
  scrollbar-width:thin;
  scrollbar-color:#315a69 transparent;
}

/* ---------- 08. ECOSYSTEM ---------- */

.brand-ecosystem{
  position:relative;
}

.brand-eco-inner{
  border-radius:18px!important;
  border-color:rgba(52,118,143,.34)!important;
  background:
    radial-gradient(560px 220px at 16% 0%,rgba(54,212,240,.045),transparent 72%),
    radial-gradient(460px 220px at 100% 100%,rgba(154,123,255,.035),transparent 72%),
    rgba(5,19,29,.86)!important;
  box-shadow:
    0 18px 48px rgba(0,0,0,.17),
    inset 0 0 0 1px rgba(255,255,255,.012);
}

.nexa-eco-left-enhanced #nexaProfessionalProfiles,
#nexaProfessionalProfiles{
  border-color:rgba(50,111,134,.38)!important;
  background:rgba(5,18,27,.70)!important;
}

.nexa-profile-link{
  min-height:56px!important;
}

.nexa-profile-link:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(74,181,211,.48)!important;
}

.nexa-profile-link__icon img{
  image-rendering:auto;
}

/* Offline is calm. */
.brand-eco-links .tiktok-link:not(.nexa-is-live){
  border-color:rgba(42,105,128,.38)!important;
  box-shadow:none!important;
}

.brand-eco-links .tiktok-link:not(.nexa-is-live):hover{
  border-color:rgba(66,158,188,.52)!important;
  transform:translateY(-2px);
}

/* LIVE only becomes visually loud when the verified renderer applied the class. */
.brand-eco-links .tiktok-link.nexa-is-live{
  border-color:rgba(255,49,89,.65)!important;
  background:
    linear-gradient(135deg,rgba(255,49,89,.065),rgba(7,20,29,.90))!important;
  box-shadow:
    0 0 0 1px rgba(255,49,89,.04),
    0 0 26px rgba(255,49,89,.09)!important;
}

/* Footer is intentionally neutral: no LIVE/JOIN treatment here. */
.footer-meta a[href*="tiktok.com/@"].nexa-is-live,
.footer-meta a[href*="tiktok.com/@"]{
  box-shadow:none!important;
  background:transparent!important;
}

/* ---------- 09. Q&A ---------- */

.qa-item{
  border-radius:13px!important;
}

.qa-item:hover{
  transform:translateY(-1px);
}

.qa-question{
  min-height:58px;
}

.qa-question:focus-visible{
  outline-offset:-2px!important;
}

.qa-answer{
  line-height:1.58;
}

.side-card{
  border-radius:15px!important;
}

/* ---------- 10. TERMS ---------- */

.company,
.term{
  border-radius:14px!important;
}

.term{
  transition:border-color .18s var(--nx650-ease),transform .18s var(--nx650-ease);
}

.term:hover{
  transform:translateY(-1px);
  border-color:rgba(65,149,179,.38)!important;
}

.company-grid .data{
  min-width:0;
}

.company-grid .data b,
.company-grid .data a{
  overflow-wrap:anywhere;
}

/* ---------- 11. Q&A <-> TERMS CROSS LINKS ---------- */

.nexa-crossnav{
  width:min(1180px,calc(100% - 32px));
  margin:26px auto 22px;
  padding:12px 14px;
  border:1px solid rgba(54,116,139,.32);
  border-radius:12px;
  background:rgba(6,21,31,.72);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.nexa-crossnav__label{
  color:#7f9aa8;
  font-size:11px;
  line-height:1.45;
}

.nexa-crossnav__links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.nexa-crossnav a{
  min-height:34px;
  padding:8px 11px;
  border:1px solid rgba(58,130,156,.36);
  border-radius:9px;
  color:#bfeefa;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10.5px;
  font-weight:750;
}

.nexa-crossnav a:hover{
  transform:translateY(-1px);
  border-color:rgba(78,194,222,.58);
  color:#effcff;
}

/* ---------- 12. PWA INSTALLER FINISH ---------- */

.nexa-pwa-modal__panel{
  border-radius:22px!important;
  box-shadow:
    0 32px 90px rgba(0,0,0,.54),
    0 0 0 1px rgba(90,220,244,.035),
    inset 0 0 0 1px rgba(255,255,255,.025)!important;
}

.nexa-pwa-modal__appicon{
  position:relative;
  overflow:hidden;
}

.nexa-pwa-modal__appicon::after{
  content:"";
  position:absolute;
  width:42px;
  height:10px;
  left:-38px;
  top:4px;
  transform:rotate(-28deg);
  background:rgba(255,255,255,.22);
  filter:blur(2px);
  animation:nexa650InstallerSheen 4.8s ease-in-out infinite;
}

.nexa-pwa-benefit{
  transition:border-color .17s var(--nx650-ease),background .17s var(--nx650-ease);
}

.nexa-pwa-benefit:hover{
  border-color:rgba(65,155,182,.46);
  background:rgba(8,27,38,.90);
}

.nexa-pwa-state.good::before{
  content:"●";
  margin-right:7px;
  font-size:8px;
  vertical-align:1px;
}

.nexa-pwa-state.warn::before{
  content:"●";
  margin-right:7px;
  font-size:8px;
  vertical-align:1px;
}

/* ---------- 13. FOOTER / LEGAL ---------- */

.site-footer,
footer{
  position:relative;
}

.nexa-legal-bar{
  border-radius:11px!important;
}

.footer-meta a:hover{
  color:#e5fbff!important;
}

/* ---------- 14. RESPONSIVE AUDIT PASS ---------- */

@media(max-width:1180px){
  .topbar .topbar-inner,
  .top .topin{
    gap:12px!important;
  }

  .brand-eco-inner{
    gap:26px!important;
  }
}

@media(max-width:900px){
  .hero-copy > p,
  .hero > .wrap > p{
    max-width:100%;
  }

  .project-card h3,
  .project-card p,
  .project-card .tags{
    min-height:0;
  }

  .brand-eco-inner{
    grid-template-columns:1fr!important;
  }

  .brand-eco-inner > .nexa-eco-left-enhanced{
    padding-right:0!important;
  }

  #nexaProfessionalProfiles{
    max-width:none!important;
  }

  .nexa-crossnav{
    width:min(100% - 24px,1180px);
  }
}

@media(max-width:768px){
  .topbar .topbar-inner,
  .top .topin{
    min-width:0!important;
  }

  .hero{
    overflow:hidden;
  }

  .hero-actions{
    flex-wrap:wrap!important;
  }

  .hero-actions > *{
    min-width:0!important;
  }

  .filters{
    overflow:visible!important;
  }

  .project-card{
    min-width:0!important;
  }

  .nexa-pwa-modal__panel{
    max-height:calc(100dvh - 24px);
    overflow:auto;
  }
}

@media(max-width:430px){
  .hero-actions > *{
    width:100%!important;
  }

  .filters button,
  .filter{
    flex:1 1 auto;
  }

  .nexa-profiles__grid{
    grid-template-columns:1fr!important;
  }

  .nexa-crossnav{
    align-items:flex-start;
  }

  .nexa-crossnav__links{
    width:100%;
  }

  .nexa-crossnav a{
    flex:1 1 120px;
  }
}

@media(max-width:390px){
  .topbar .top-actions,
  .top .actions{
    gap:5px!important;
  }

  .nexa-pwa-modal{
    padding:8px!important;
  }

  .nexa-pwa-modal__top,
  .nexa-pwa-modal__body{
    padding-left:13px!important;
    padding-right:13px!important;
  }
}

@media(max-width:360px){
  .nexa-pwa-modal__title{
    font-size:17px!important;
  }

  .project-card{
    border-radius:12px!important;
  }
}

/* ---------- 15. MOTION ---------- */

@keyframes nexa650HeroGradient{
  0%{background-position:0% 50%}
  100%{background-position:100% 50%}
}

@keyframes nexa650InstallerSheen{
  0%,68%{left:-38px;opacity:0}
  73%{opacity:.75}
  88%,100%{left:54px;opacity:0}
}

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

/* ==========================================================
   END NEXACORE V6.5.0
   ========================================================== */
