/* NexaCraft homepage: new header + hero (hub). Services section and the 3-button rail stay as the original site. */

/* ---------- HEADER ---------- */
body[data-page-family="home"] .site-header {
  background: linear-gradient(180deg, rgba(9, 25, 48, .96), rgba(11, 31, 58, .88));
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px -18px rgba(2, 10, 24, .7);
}
body[data-page-family="home"] .site-header::after {            /* thin amber accent line */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .55) 30%, rgba(245, 158, 11, .55) 70%, transparent);
  pointer-events: none;
}
body[data-page-family="home"] .primary-nav__list > li > a,
body[data-page-family="home"] .primary-nav__list > li > button {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  letter-spacing: .005em;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
body[data-page-family="home"] .primary-nav__list > li > a:hover,
body[data-page-family="home"] .primary-nav__list > li > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
body[data-page-family="home"] .primary-nav__list > li > a[aria-current="page"] {
  color: #ffc15a;
  background: rgba(245, 158, 11, .12);
}
body[data-page-family="home"] .site-header .header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: #0b1f3a;
  background: linear-gradient(135deg, #ffbe4a 0%, #f59e0b 55%, #e68a00 100%);
  box-shadow: 0 8px 22px -6px rgba(245, 158, 11, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .2s, box-shadow .2s;
}
body[data-page-family="home"] .site-header .header-cta::after {
  content: "→"; font-weight: 700; transition: transform .2s;
}
body[data-page-family="home"] .site-header .header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(245, 158, 11, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body[data-page-family="home"] .site-header .header-cta:hover::after { transform: translateX(3px); }
body[data-page-family="home"] .menu-toggle { color: #fff; }

/* ---------- HERO ---------- */
.nx-studio-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(245, 158, 11, .16), transparent 62%),
    radial-gradient(800px 640px at 70% 85%, rgba(56, 120, 200, .22), transparent 65%),
    radial-gradient(600px 500px at 0% 0%, rgba(56, 120, 200, .14), transparent 60%),
    #0b1f3a;
}
.nx-studio-hero .hero__grid-pattern {
  opacity: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 45%, #000 20%, transparent 78%);
}
.nx-studio-hero .hero__grid { gap: 64px; align-items: center; }

/* eyebrow becomes a pill badge */
.nx-studio-hero .hero__content .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 999px;
  background: rgba(245, 158, 11, .09);
  font-size: 12.5px; letter-spacing: .14em;
  margin-bottom: 26px;
}
.nx-studio-hero .eyebrow__dot { box-shadow: 0 0 0 4px rgba(245, 158, 11, .22); }

.nx-studio-hero .hero__headline {
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 26px;
}
.nx-studio-hero .hero__headline span {
  background: linear-gradient(95deg, #ffd78a 0%, #f5a30d 55%, #ff8f3a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nx-studio-hero .hero__subhead {
  font-size: 20px; line-height: 1.6; max-width: 540px;
  color: rgba(214, 222, 235, .9);
}
.nx-studio-hero .hero__actions { margin-top: 34px; gap: 26px; align-items: center; }
.nx-studio-hero .hero__actions .btn--primary {
  border-radius: 999px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #ffbe4a, #f59e0b 60%, #e68a00);
  box-shadow: 0 14px 34px -10px rgba(245, 158, 11, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .2s, box-shadow .2s;
}
.nx-studio-hero .hero__actions .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(245, 158, 11, .85), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.nx-studio-hero .nx-studio-explore {
  padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .35);
  transition: border-color .2s, color .2s;
}
.nx-studio-hero .nx-studio-explore:hover { border-color: #f5a30d; color: #ffc15a; }

/* trust line → quiet divider block */
.nx-studio-hero .nx-studio-trust {
  margin-top: 38px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  max-width: 440px; line-height: 1.7;
  color: rgba(214, 222, 235, .78);
}

/* visual scene: soft halo + lifted glass cards */
.nx-studio-hero .hero__visual { position: relative; }
.nx-studio-hero .hero__visual::before {
  content: ""; position: absolute; inset: -6% -4% -2% -4%; z-index: 0;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .18), transparent 70%);
  filter: blur(8px); pointer-events: none;
}

@media (max-width: 960px) {
  .nx-studio-hero { padding: 56px 0 48px; }
  .nx-studio-hero .hero__headline { font-size: clamp(40px, 11vw, 60px); }
  .nx-studio-hero .hero__visual::after { display: none; }
}

.nx-studio-hero .hero__visual::after {
  content: ""; position: absolute; z-index: 0; right: -80px; top: -60px; width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px dashed rgba(245,158,11,.28);
  box-shadow: inset 0 0 0 60px rgba(245,158,11,.025), 0 0 0 70px rgba(245,158,11,.02);
  pointer-events: none;
}

.nx-studio-hero .hero__visual { perspective: none; }
.nx-hub {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px; margin-left: auto;
  aspect-ratio: 660 / 620;
}
.nx-hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nx-hub__line {
  stroke: url(#nx-line); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 3 9; animation: nx-dash 2.2s linear infinite;
}
.nx-hub__line--soft { opacity: .35; }
@keyframes nx-dash { to { stroke-dashoffset: -48; } }

/* core */
.nx-hub__core {
  position: absolute; left: 50%; top: 48.4%; width: 19%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-content: center; justify-items: center; gap: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1f4a76, #0e2a4a 70%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, .06), 0 20px 50px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  z-index: 3;
}
.nx-hub__core svg { width: 38%; height: auto; }
.nx-hub__core b { font-size: clamp(10px, 1.05vw, 13px); font-weight: 700; color: #fff; letter-spacing: .02em; }
.nx-hub__ring {
  position: absolute; inset: -14%; border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, .55);
  animation: nx-ring 3s ease-out infinite;
}
@keyframes nx-ring { 0% { transform: scale(.88); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* service nodes */
.nx-hub__node {
  position: absolute; z-index: 2; display: grid; gap: 6px; align-content: start;
  padding: 16px 18px 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -28px rgba(0, 6, 18, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #fff; text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, background-color .3s;
}
.nx-hub__node:hover { transform: translateY(-6px); border-color: rgba(245, 158, 11, .7); background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(245, 158, 11, .08)); }
.nx-hub__node--web  { left: 0;      top: 0;      width: 44.5%; }
.nx-hub__node--auto { left: 56.5%;  top: 6%;     width: 43.5%; }
.nx-hub__node--grow { left: 7%;     top: 64%;    width: 62%; }

.nx-hub__icon {
  position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: #ffbe4a;
  background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .35);
}
.nx-hub__icon svg { width: 20px; height: 20px; }
.nx-hub__kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffbe4a; }
.nx-hub__node strong { font-size: clamp(16px, 1.55vw, 20px); letter-spacing: -.015em; line-height: 1.15; padding-right: 44px; }
.nx-hub__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nx-hub__chips i {
  font-style: normal; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px; color: #e6edf6;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
}

/* inquiry toast */
.nx-hub__toast {
  position: absolute; right: 0; top: 70%; z-index: 4; width: 29%;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: #fff; color: #0b1f3a;
  box-shadow: 0 24px 50px -16px rgba(0, 6, 18, .85);
  animation: nx-bob 5s ease-in-out infinite;
}
.nx-hub__toast-dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: #16a34a; animation: nx-pulse2 2.4s ease-out infinite;
}
.nx-hub__toast b { display: block; font-size: 13px; line-height: 1.2; }
.nx-hub__toast small { display: block; font-size: 11.5px; color: #55657a; margin-top: 2px; }
@keyframes nx-pulse2 { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); } }
@keyframes nx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.nx-hub__caption {
  position: absolute; left: 0; bottom: -4px; margin: 0; font-size: 12px; letter-spacing: .08em; color: rgba(214, 222, 235, .55);
}
@media (prefers-reduced-motion: no-preference) {
  .nx-hub__node--web  { animation: nx-bob 7s ease-in-out infinite; }
  .nx-hub__node--auto { animation: nx-bob 7s ease-in-out -2.3s infinite; }
  .nx-hub__node--grow { animation: nx-bob 7s ease-in-out -4.6s infinite; }
  .nx-hub__node:hover { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .nx-hub__line, .nx-hub__ring, .nx-hub__toast, .nx-hub__toast-dot { animation: none; } }

/* tablet / phone: stack */
@media (max-width: 960px) {
  .nx-hub { aspect-ratio: auto; display: grid; gap: 14px; max-width: 560px; margin: 8px auto 0; }
  .nx-hub__lines, .nx-hub__ring, .nx-hub__caption { display: none; }
  .nx-hub__core { position: relative; left: auto; top: auto; transform: none; width: 110px; margin: 0 auto 4px; }
  .nx-hub__node, .nx-hub__node--web, .nx-hub__node--auto, .nx-hub__node--grow { position: relative; left: auto; top: auto; width: auto; animation: none; }
  .nx-hub__toast { position: relative; right: auto; top: auto; width: auto; animation: none; }
}
