@font-face {
  font-family: Inter;
  src: url("../../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ns-night: #07131f;
  --ns-deep: #0a1b2c;
  --ns-panel: #0e2235;
  --ns-line: rgba(111, 148, 178, .3);
  --ns-text: #f4f8fb;
  --ns-muted: #a7b8c7;
  --ns-blue: #1d9bff;
  --ns-cyan: #42d6e8;
  --ns-lime: #a8d92e;
  --ns-coral: #ff5d52;
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; background: var(--ns-night); }
body.northstar-demo {
  color: var(--ns-text);
  background:
    linear-gradient(rgba(55, 99, 132, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 99, 132, .045) 1px, transparent 1px),
    var(--ns-night);
  background-size: 68px 68px;
  font-family: Inter, system-ui, sans-serif;
}

.northstar-demo::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(29, 155, 255, .12), transparent 28%);
  content: "";
  pointer-events: none;
}

.sample-strip {
  position: sticky;
  z-index: 90;
  top: 0;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 18px;
  color: #dbe6ed;
  background: #02070c;
  border-bottom: 1px solid rgba(168, 217, 46, .35);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.sample-strip a { color: var(--ns-lime); text-decoration: underline; text-underline-offset: 3px; }
.northstar-demo .topbar { top: 38px; z-index: 80; background: rgba(7, 19, 31, .94); border-color: var(--ns-line); }
.northstar-demo .nav { height: 72px; }

.ns-brand {
  display: grid;
  grid-template-columns: 35px auto;
  grid-template-rows: 18px 13px;
  column-gap: 11px;
  align-items: center;
  min-width: 178px;
  color: var(--ns-text);
}

.ns-mark {
  grid-row: 1 / 3;
  width: 31px;
  aspect-ratio: 1;
  background:
    linear-gradient(36deg, transparent 45%, var(--ns-lime) 46% 54%, transparent 55%),
    linear-gradient(-36deg, transparent 45%, var(--ns-lime) 46% 54%, transparent 55%);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 94%, 50% 71%, 20% 94%, 32% 56%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 8px rgba(168, 217, 46, .34));
}

.ns-brand strong { align-self: end; font-size: 13px; letter-spacing: .12em; }
.ns-brand small { align-self: start; color: var(--ns-muted); font-size: 8px; font-weight: 800; letter-spacing: .32em; }
.northstar-demo .nav-links { gap: 29px; }
.northstar-demo .nav-links > a { color: #c9d5df; font-size: 11px; }
.northstar-demo .nav-links > a:hover { color: var(--ns-lime); }
.northstar-demo .nav-cta {
  min-height: 42px;
  padding: 13px 19px;
  border: 1px solid var(--ns-lime);
  border-radius: 2px;
  color: #081019;
  background: var(--ns-lime);
}

.northstar-demo .hero { min-height: 650px; padding: 86px 0 60px; overflow: hidden; }
.northstar-demo .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 28px; }
.ns-kicker,
.ns-section-heading > div > span,
.ns-control-copy > span,
.ns-integration-intro > span,
.northstar-demo .cta-content > div > span {
  display: block;
  margin-bottom: 20px;
  color: var(--ns-lime);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.northstar-demo h1 {
  max-width: 650px;
  font-size: clamp(52px, 5.6vw, 79px);
  font-weight: 690;
  line-height: .92;
}

.northstar-demo h1 .accent {
  color: transparent;
  background: linear-gradient(96deg, var(--ns-cyan), var(--ns-blue) 48%, var(--ns-lime));
  background-clip: text;
  -webkit-background-clip: text;
}

.northstar-demo .lead { max-width: 610px; color: #b7c5d1; font-size: 17px; }
.northstar-demo .lead strong { color: var(--ns-text); }
.northstar-demo .btn-primary,
.northstar-demo .price-btn {
  border: 1px solid var(--ns-lime);
  border-radius: 2px;
  color: #081019;
  background: var(--ns-lime);
}
.northstar-demo .btn-outline { border-color: var(--ns-line); border-radius: 2px; color: var(--ns-text); background: rgba(10, 27, 44, .7); }
.northstar-demo .btn-primary:hover,
.northstar-demo .price-btn:hover { background: #c1ed55; }
.northstar-demo .btn-outline:hover { border-color: var(--ns-cyan); background: var(--ns-deep); }

.northstar-demo .features-row { margin-top: 37px; border-color: var(--ns-line); }
.northstar-demo .feature-mini { display: flex; gap: 10px; min-width: 0; align-items: center; }
.northstar-demo .feature-mini + .feature-mini { border-color: var(--ns-line); }
.northstar-demo .feature-mini b { color: var(--ns-lime); font-size: 19px; }
.northstar-demo .feature-mini p { color: var(--ns-muted); font-size: 9px; line-height: 1.25; }

.northstar-demo .hero-visual { min-height: 500px; transform: translateX(38px); }
.ns-grid-glow {
  position: absolute;
  inset: 11% -10% 3% 4%;
  border: 1px solid rgba(66, 214, 232, .12);
  background-image: linear-gradient(rgba(66, 214, 232, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(66, 214, 232, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(550px) rotateX(61deg);
  mask-image: linear-gradient(to top, #000, transparent);
}

.northstar-demo .laptop,
.northstar-demo .tablet,
.northstar-demo .phone {
  border-color: rgba(89, 139, 175, .72);
  border-radius: 7px;
  background: #02070c;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .52), 0 0 25px rgba(29, 155, 255, .16);
}
.northstar-demo .laptop { top: 21px; right: 47px; width: 500px; height: 305px; }
.northstar-demo .tablet { left: 15px; bottom: 39px; width: 294px; height: 221px; transform: rotateZ(4deg); }
.northstar-demo .phone { right: 4px; bottom: 57px; width: 132px; height: 244px; transform: rotateZ(1deg); }
.northstar-demo .screen,
.northstar-demo .tablet-inner,
.northstar-demo .phone-screen { inset: 5px; padding: 0; border-radius: 3px; background: #07131f; }
.northstar-demo .screen img,
.northstar-demo .tablet-inner img,
.northstar-demo .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.northstar-demo .tablet-inner img { width: 205%; max-width: none; object-position: 42% center; transform: translateX(-25%); }
.northstar-demo .phone-screen img { width: 440%; max-width: none; object-position: 72% center; transform: translateX(-65%); }

.northstar-demo .home-section { padding: 86px 0; border-top: 1px solid var(--ns-line); }
.ns-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 45px;
}
.ns-section-heading h2,
.ns-control-copy h2,
.ns-integration-intro h2 {
  margin: 0;
  color: var(--ns-text);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 650;
  line-height: .96;
}
.ns-section-heading p,
.ns-control-copy p,
.ns-integration-intro p { margin: 0; color: var(--ns-muted); font-size: 15px; line-height: 1.7; }

.northstar-demo .service-grid { gap: 1px; border: 1px solid var(--ns-line); background: var(--ns-line); }
.northstar-demo .service-card {
  position: relative;
  min-height: 245px;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: var(--ns-deep);
  box-shadow: none;
}
.ns-card-index { color: var(--ns-cyan); font-size: 10px; font-weight: 800; }
.northstar-demo .service-card h3 { margin-top: 53px; color: var(--ns-text); font-size: 21px; }
.northstar-demo .service-card p { color: var(--ns-muted); }
.northstar-demo .service-card a { position: absolute; right: 28px; bottom: 25px; left: 28px; color: var(--ns-lime); font-size: 11px; font-weight: 800; }
.northstar-demo .service-card:hover { background: #102942; }

.ns-control { background: #050d15; }
.ns-control-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: 70px; align-items: center; }
.ns-control-copy { max-width: 420px; }
.ns-control-copy p { margin: 26px 0; }
.ns-text-link { color: var(--ns-lime); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.ns-control-panel { overflow: hidden; border: 1px solid var(--ns-line); background: var(--ns-deep); }
.ns-control-panel img { width: 100%; height: 355px; object-fit: cover; object-position: center 32%; }
.ns-panel-head,
.ns-signal-row { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; }
.ns-panel-head { border-bottom: 1px solid var(--ns-line); color: var(--ns-muted); font-size: 11px; }
.ns-panel-head strong { color: var(--ns-lime); }
.ns-signal-row { gap: 18px; border-top: 1px solid var(--ns-line); color: var(--ns-muted); font-size: 10px; }
.ns-signal-row i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }
.ns-signal-row .healthy { background: var(--ns-lime); }
.ns-signal-row .watch { background: #ffc746; }
.ns-signal-row .critical { background: var(--ns-coral); }

.northstar-demo .why-grid { gap: 1px; border-top: 1px solid var(--ns-line); border-bottom: 1px solid var(--ns-line); background: var(--ns-line); }
.northstar-demo .why-item { min-height: 190px; grid-template-columns: 1fr; gap: 24px; padding: 25px; background: var(--ns-night); }
.northstar-demo .why-icon {
  width: auto;
  height: auto;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  color: var(--ns-cyan);
  background: none;
  box-shadow: none;
  font-size: 29px;
  font-weight: 700;
}
.northstar-demo .why-item h4 { color: var(--ns-text); font-size: 16px; }
.northstar-demo .why-item p { color: var(--ns-muted); }

.ns-integration { background: linear-gradient(120deg, #0a1b2c, #07131f 66%); }
.ns-integration-intro { max-width: 850px; }
.ns-integration-intro p { max-width: 680px; margin-top: 23px; }
.ns-flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; gap: 0; align-items: center; margin-top: 51px; }
.ns-flow > div { min-height: 160px; padding: 28px; border: 1px solid var(--ns-line); background: rgba(7, 19, 31, .72); }
.ns-flow b,
.ns-flow span,
.ns-flow small { display: block; }
.ns-flow b { margin-bottom: 34px; color: var(--ns-cyan); font-size: 11px; }
.ns-flow span { color: var(--ns-text); font-size: 20px; font-weight: 700; }
.ns-flow small { margin-top: 7px; color: var(--ns-muted); font-size: 10px; }
.ns-flow > i { height: 1px; background: linear-gradient(90deg, var(--ns-blue), var(--ns-lime)); }

.ns-pricing { background: #07111c; }
.northstar-demo .price-grid { gap: 12px; }
.northstar-demo .price-card {
  min-height: 440px;
  padding: 27px 24px;
  border: 1px solid var(--ns-line);
  border-radius: 3px;
  background: var(--ns-deep);
  box-shadow: none;
}
.northstar-demo .price-card h3 { color: var(--ns-text); background: none; -webkit-text-fill-color: currentColor; text-shadow: none; }
.northstar-demo .price-card:nth-child(2) { border-color: rgba(168, 217, 46, .7); }
.northstar-demo .price-card:nth-child(2) h3 { color: var(--ns-lime); }
.northstar-demo .price { color: var(--ns-text); font-size: 30px; }
.northstar-demo .checks li::before { background: var(--ns-cyan); box-shadow: none; }

.northstar-demo .cta-band { padding: 76px 0; border: 0; background: var(--ns-lime); }
.northstar-demo .cta-content { color: #081019; }
.northstar-demo .cta-content h2 { margin: 12px 0 15px; color: #081019; font-size: clamp(36px, 4vw, 58px); line-height: .96; }
.northstar-demo .cta-content p { color: #1d2a18; }
.northstar-demo .cta-content > div > span { color: #304318; }
.northstar-demo .cta-content > div:last-child { display: grid; gap: 12px; justify-items: end; }
.northstar-demo .cta-button { border: 1px solid #081019; border-radius: 2px; color: var(--ns-text); background: #081019; }
.northstar-demo .cta-content small { color: #304318; font-size: 9px; }

.ns-footer { padding: 42px 0; background: #02070c; }
.ns-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.ns-footer p { margin: 0; color: var(--ns-muted); font-size: 11px; }
.ns-footer > .container > div { display: flex; gap: 24px; }
.ns-footer > .container > div a { color: var(--ns-muted); font-size: 10px; }
.ns-footer > .container > div a:hover { color: var(--ns-lime); }

.ns-toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: 330px;
  padding: 15px 18px;
  border: 1px solid var(--ns-lime);
  color: var(--ns-text);
  background: #07131f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
  font-size: 12px;
}

.ns-reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.ns-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .northstar-demo .hero-grid { grid-template-columns: 1fr; }
  .northstar-demo .hero-copy { max-width: 760px; }
  .northstar-demo .hero-visual { min-height: 480px; transform: none; }
  .ns-control-grid { grid-template-columns: 1fr; }
  .ns-control-copy { max-width: 680px; }
  .northstar-demo .price-grid.price-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sample-strip { justify-content: space-between; font-size: 8px; }
  .northstar-demo .topbar { top: 42px; }
  .northstar-demo .nav { height: 68px; }
  .northstar-demo .menu-toggle { display: grid; border-radius: 2px; border-color: var(--ns-line); }
  .northstar-demo .nav-cta { display: none; }
  .northstar-demo .nav-links {
    position: fixed;
    z-index: 78;
    top: 110px;
    right: 12px;
    left: 12px;
    display: none;
    padding: 14px;
    border: 1px solid var(--ns-line);
    background: #07131f;
  }
  .northstar-demo.ns-menu-open .nav-links { display: grid; }
  .northstar-demo .nav-links > a { padding: 13px; border-bottom: 1px solid var(--ns-line); }
  .northstar-demo .hero { padding-top: 60px; }
  .northstar-demo h1 { font-size: clamp(48px, 15vw, 67px); }
  .northstar-demo .features-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .northstar-demo .feature-mini:nth-child(3) { border-left: 0; }
  .northstar-demo .hero-visual { min-height: 360px; transform: scale(.79); transform-origin: center top; margin-bottom: -74px; }
  .northstar-demo .laptop { right: 50%; transform: translateX(50%) rotateZ(-1deg); }
  .northstar-demo .tablet { left: 0; }
  .northstar-demo .phone { right: -8px; }
  .northstar-demo .home-section { padding: 66px 0; }
  .ns-section-heading { grid-template-columns: 1fr; gap: 25px; }
  .northstar-demo .service-grid,
  .northstar-demo .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-flow { grid-template-columns: 1fr; gap: 9px; }
  .ns-flow > i { width: 1px; height: 25px; margin-left: 28px; }
  .ns-footer .container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .sample-strip span { max-width: 235px; line-height: 1.3; }
  .ns-brand { min-width: 0; }
  .northstar-demo .hero { min-height: 790px; }
  .northstar-demo .lead { font-size: 15px; }
  .northstar-demo .actions { display: grid; }
  .northstar-demo .actions a { width: 100%; justify-content: center; }
  .northstar-demo .hero-visual { left: 50%; width: 580px; transform: translateX(-50%) scale(.59); margin: 8px 0 -150px; }
  .northstar-demo .service-grid,
  .northstar-demo .why-grid,
  .northstar-demo .price-grid.price-grid-full { grid-template-columns: 1fr; }
  .northstar-demo .service-card { min-height: 215px; }
  .ns-control-panel img { height: 245px; }
  .ns-signal-row { align-items: flex-start; flex-direction: column; }
  .northstar-demo .cta-content { align-items: stretch; flex-direction: column; }
  .northstar-demo .cta-content > div:last-child { justify-items: stretch; }
  .northstar-demo .cta-button { width: 100%; text-align: center; }
  .ns-footer > .container > div { gap: 14px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ns-reveal { opacity: 1; transform: none; transition: none; }
}
