/* =========================================================
   NovaStar page (revamp). Uses the shared banner / reveal / CTA
   styles from about.css. Rules below are scoped under .ns-main.
   ========================================================= */

/* ---------- Hero ---------- */
.ns-main .ns-hero {
  padding-bottom: clamp(44px, 6vw, 72px)
}

.ns-main .ns-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px
}

.ns-main .ns-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, .25);
  animation: nsPulse 2.2s infinite
}

@keyframes nsPulse {
  50% {
    box-shadow: 0 0 0 8px rgba(245, 166, 35, 0)
  }
}

.ns-main .ns-hero__sub {
  color: #D5E0F5;
  max-width: 56ch;
  margin-top: 14px;
  font-size: clamp(14px, 1.2vw, 16.5px)
}

.ns-main .ns-stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 640px;
  border-radius: var(--rad-s);
  background: rgba(1, 13, 40, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px)
}

.ns-main .ns-stats li {
  flex: 1 1 0;
  min-width: 150px;
  padding: 14px 18px
}

.ns-main .ns-stats li+li {
  border-left: 1px solid rgba(255, 255, 255, .14)
}

.ns-main .ns-stats b {
  display: block;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.2
}

.ns-main .ns-stats span {
  display: block;
  color: #AFC6F5;
  font-size: 12px;
  margin-top: 3px
}

.ns-main .ns-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px
}

/* ---------- Intro + steps ---------- */
.ns-main .ns-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start
}

.ns-main .ns-chain {
  position: sticky;
  top: 96px
}

.ns-main .ns-steps {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px
}

.ns-main .ns-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--rad-s);
  background: #fff;
  font-size: 14px;
  color: var(--mut);
  line-height: 1.55;
  transition: border-color .25s, transform .25s
}

.ns-main .ns-steps li:hover {
  border-color: var(--blue);
  transform: translateX(4px)
}

.ns-main .ns-steps span {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 12.5px
}

.ns-main .ns-steps b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px
}

/* ---------- Control chain diagram ---------- */
.ns-main .ns-chain {
  margin: 0;
  border-radius: var(--rad);
  padding: clamp(20px, 2.4vw, 30px);
  background: radial-gradient(120% 120% at 80% 0%, #0A2C7A 0%, var(--navy3) 65%);
  color: #fff;
  box-shadow: var(--sh-lg);
  overflow: hidden;
  isolation: isolate
}

.ns-main .ns-chain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(150, 190, 255, .14) 1px, transparent 1.4px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, #000, transparent)
}

.ns-main .ns-chain figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.ns-main .ns-chain figcaption span {
  font-weight: 600;
  font-size: 15px
}

.ns-main .ns-chain figcaption small {
  color: var(--on-dark-eyebrow);
  font-size: 12px
}

.ns-main .ns-chain button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background .25s, box-shadow .25s, transform .25s
}

.ns-main .ns-chain button:hover,
.ns-main .ns-chain button:focus-visible {
  background: rgba(45, 107, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(143, 178, 245, .7);
  transform: translateY(-3px)
}

.ns-main .ns-chain button svg {
  width: 24px;
  height: 24px;
  color: #8FB2F5;
  margin-bottom: 2px
}

.ns-main .ns-chain button b {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25
}

.ns-main .ns-chain button small {
  font-size: 10.5px;
  color: #9FB2D6;
  line-height: 1.3
}

.ns-main .ns-chain__monitor {
  position: relative;
  padding-bottom: 26px
}

.ns-main .ns-chain__monitor button {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  background: rgba(245, 166, 35, .1);
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, .45)
}

.ns-main .ns-chain__monitor button svg {
  color: var(--amber);
  margin: 0
}

.ns-main .ns-chain__monitor button small {
  font-weight: 400;
  margin-left: 4px
}

.ns-main .ns-chain__monitor::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 26px;
  border: 1.5px dashed rgba(245, 166, 35, .5);
  border-bottom: 0;
  border-radius: 10px 10px 0 0
}

.ns-main .ns-chain__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative
}

.ns-main .ns-chain__flow::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(143, 178, 245, .15), rgba(143, 178, 245, .55), rgba(143, 178, 245, .15));
  z-index: -1
}

.ns-main .ns-chain__flow::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: 8%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px 4px rgba(245, 166, 35, .6);
  z-index: -1;
  animation: nsSignal 3.6s linear infinite
}

@keyframes nsSignal {
  0% {
    left: 8%;
    opacity: 0
  }

  8% {
    opacity: 1
  }

  92% {
    opacity: 1
  }

  100% {
    left: 92%;
    opacity: 0
  }
}

.ns-main .ns-chain__flow li {
  position: relative
}

.ns-main .ns-chain__flow button {
  background: #0B1D4A
}

.ns-main .ns-chain__flow button.is-end {
  background: #16337F;
  box-shadow: inset 0 0 0 1px rgba(143, 178, 245, .6)
}

/* ---------- Toolbar: filter chips + search ---------- */
.ns-main .ns-bar {
  position: sticky;
  top: 70px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: clamp(24px, 3vw, 36px);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh), inset 0 0 0 1px var(--line);
  transition: top .35s var(--ease)
}

.ns-main .ns-bar.hdr-off {
  top: 12px
}

.ns-main .ns-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch
}

.ns-main .ns-chips::-webkit-scrollbar {
  display: none
}

.ns-main .ns-chips button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: 600 13.5px/1.2 var(--font);
  color: var(--mut);
  cursor: pointer;
  transition: background .25s, color .25s
}

.ns-main .ns-chips button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--soft);
  font-size: 11px;
  color: var(--mut)
}

.ns-main .ns-chips button:hover {
  color: var(--ink);
  background: var(--soft)
}

.ns-main .ns-chips button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff
}

.ns-main .ns-chips button[aria-pressed="true"] span {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

.ns-main .ns-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  min-width: 240px;
  border-radius: 9px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s
}

.ns-main .ns-search:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--blue)
}

.ns-main .ns-search svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
  flex: none
}

.ns-main .ns-search input {
  border: 0;
  background: transparent;
  outline: 0;
  font: 500 13.5px var(--font);
  color: var(--ink);
  width: 100%
}

/* ---------- Groups + grid ---------- */
.ns-main .ns-group+.ns-group {
  margin-top: clamp(40px, 5vw, 64px)
}

.ns-main .ns-group__head {
  display: flex;
  align-items: baseline;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line2)
}

.ns-main .ns-group__head h3 {
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px)
}

.ns-main .ns-group__head p {
  color: var(--mut);
  font-size: 14px
}

.ns-main .ns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.ns-main .ns-grid--4 {
  grid-template-columns: repeat(4, 1fr)
}

.ns-main .ns-grid--4 .is-feat {
  grid-column: span 2
}

.ns-main .is-hidden {
  display: none !important
}

/* ---------- Card ---------- */
.ns-main .ns-card {
  --accent: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--rad);
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s
}

.ns-main .ns-card[data-cat="processor"] {
  --accent: var(--amber)
}

.ns-main .ns-card[data-cat="software"] {
  --accent: #26A65B
}

.ns-main .ns-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
  z-index: 2
}

.ns-main .ns-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--line)
}

.ns-main .ns-card:hover::before {
  transform: scaleX(1)
}

.ns-main .ns-card__img {
  position: relative;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden
}

.ns-main .ns-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease)
}

.ns-main .ns-card:hover .ns-card__img img {
  transform: scale(1.05)
}

.ns-main .ns-card__img.is-wide {
  padding: 0;
  background: var(--navy3)
}

.ns-main .ns-card__img.is-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.ns-main .is-feat .ns-card__img {
  aspect-ratio: 1024/334
}

.ns-main .ns-card__img.is-logo img {
  max-width: 44%;
  max-height: 62%
}

.ns-main .ns-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px
}

.ns-main .ns-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent)
}

.ns-main .ns-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent)
}

.ns-main .ns-card[data-cat="processor"] .ns-tag {
  color: #C27E0E
}

.ns-main .ns-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--amber);
  color: var(--navy3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em
}

.ns-main .ns-card h4 {
  margin: 8px 0 6px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.3
}

.ns-main .is-feat h4 {
  font-size: clamp(18px, 1.7vw, 21px)
}

.ns-main .ns-card p {
  font-size: 13.5px;
  color: var(--mut);
  line-height: 1.6
}

.ns-main .ns-models {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px
}

.ns-main .ns-models small {
  width: 100%;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint)
}

.ns-main .ns-models span {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 12px/1.3 var(--font);
  color: var(--navy)
}

.ns-main .ns-models span mark {
  background: rgba(245, 166, 35, .35);
  color: inherit;
  border-radius: 2px
}

.ns-main .ns-acts {
  margin-top: auto;
  padding-top: 18px;
  display: flex
}

.ns-main .ns-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: background .25s, gap .25s
}

.ns-main .ns-quote:hover {
  background: var(--blue);
  gap: 12px
}

/* ---------- Sending card guide ---------- */
.ns-main .ns-compare {
  margin-top: 26px;
  border-radius: var(--rad);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden
}

.ns-main .ns-compare__head {
  padding: 20px 22px 0
}

.ns-main .ns-compare__head h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 4px
}

.ns-main .ns-compare__head p {
  font-size: 13.5px;
  color: var(--mut)
}

.ns-main .ns-compare__scroll {
  overflow-x: auto;
  padding: 14px 22px 22px
}

.ns-main .ns-compare table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px
}

.ns-main .ns-compare th,
.ns-main .ns-compare td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line)
}

.ns-main .ns-compare thead th {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px
}

.ns-main .ns-compare tbody th {
  font-weight: 600;
  color: var(--faint);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  width: 120px
}

.ns-main .ns-compare td {
  color: var(--mut)
}

.ns-main .ns-compare tr:last-child td,
.ns-main .ns-compare tr:last-child th {
  border-bottom: 0;
  color: var(--navy);
  font-weight: 600
}

.ns-main .ns-compare .is-hi {
  background: var(--blue-soft)
}

.ns-main .ns-compare thead .is-hi {
  border-radius: 10px 10px 0 0;
  color: var(--blue)
}

/* ---------- Empty state ---------- */
.ns-main .ns-empty {
  text-align: center;
  padding: 40px 20px;
  border: 1.5px dashed var(--line2);
  border-radius: var(--rad);
  color: var(--mut)
}

.ns-main .ns-empty .btn {
  margin-top: 14px
}

/* ---------- FAQ ---------- */
.ns-main .ns-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px
}

.ns-main .ns-faq details {
  border-radius: var(--rad-s);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .25s
}

.ns-main .ns-faq details[open] {
  box-shadow: 0 0 0 1.5px var(--blue), var(--sh)
}

.ns-main .ns-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink)
}

.ns-main .ns-faq summary::-webkit-details-marker {
  display: none
}

.ns-main .ns-faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
  transition: transform .3s
}

.ns-main .ns-faq details[open] summary::after {
  transform: rotate(45deg)
}

/* FAQ Answer Alignment */
.ns-main .ns-faq__answer {
  padding: 0 20px 18px;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  overflow-wrap: break-word;
}

.ns-main .ns-faq__answer p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mut);
  text-align: left;
  box-sizing: border-box;
}

.ns-main .ns-faq__answer > * + * {
  margin-top: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width:1100px) {
  .ns-main .ns-grid--4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .ns-main .ns-grid--4 .is-feat {
    grid-column: span 1
  }
}

@media (max-width:980px) {
  .ns-main .ns-intro__grid {
    grid-template-columns: 1fr
  }

  .ns-main .ns-chain {
    position: relative;
    top: auto
  }

  .ns-main .ns-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:760px) {
  .ns-main .ns-bar {
    top: 62px;
    padding: 8px
  }

  .ns-main .ns-bar.hdr-off {
    top: 8px
  }

  .ns-main .ns-search {
    min-width: 0;
    flex: 1 1 100%
  }

  .ns-main .ns-chips {
    flex: 1 1 100%
  }

  .ns-main .ns-chain__flow {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .ns-main .ns-chain__flow::before {
    left: 50%;
    right: auto;
    top: 6%;
    bottom: 6%;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(143, 178, 245, .15), rgba(143, 178, 245, .55), rgba(143, 178, 245, .15))
  }

  .ns-main .ns-chain__flow::after {
    display: none
  }

  .ns-main .ns-chain__flow button {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 12px 14px
  }

  .ns-main .ns-chain__flow button small {
    margin-left: auto;
    text-align: right
  }

  .ns-main .ns-chain__flow button svg {
    margin: 0
  }

  .ns-main .ns-stats li {
    min-width: 50%
  }

  .ns-main .ns-stats li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    min-width: 100%
  }
}

@media (max-width:560px) {

  .ns-main .ns-grid,
  .ns-main .ns-grid--4 {
    grid-template-columns: 1fr
  }

  .ns-main .ns-hero__cta .btn {
    flex: 1 1 100%
  }
}

@media (prefers-reduced-motion:reduce) {

  .ns-main .ns-chain__flow::after,
  .ns-main .ns-badge i {
    animation: none
  }

  .ns-main .ns-card,
  .ns-main .ns-card__img img {
    transition: none
  }
}