:root {
  --ns-blue: #27AAE1;
  --ns-blue-bright: #5EC3EA;
  --ns-deep: #0E3F60;
  --ns-ink: #04070c;
  --ns-card: #0a111a;
  --ns-card-hi: #0d1622;
  --ns-paper: #070b12;
  --ns-line: rgba(255,255,255,.08);
  --ns-line-hi: rgba(255,255,255,.16);
  --ns-text: #e6edf5;
  --ns-muted: #9aa6b2;
  --ns-faint: #6a7280;
  --ns-mute: #3a4655;
  --ns-glow: rgba(39,170,225,.18);
  --ns-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ns-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ns-shell: 2200px;
  --ns-header-shell: 2200px;
  --ns-page-gutter: clamp(24px, 5vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(39,170,225,.14), transparent 32rem),
    radial-gradient(circle at 12% 42%, rgba(14,63,96,.24), transparent 42rem),
    var(--ns-ink);
  color: var(--ns-text);
  font-family: var(--ns-font);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: var(--ns-blue); color: var(--ns-ink); }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--ns-card); clip: auto !important; clip-path: none; color: var(--ns-text); display: block; height: auto;
  left: 1rem; padding: .75rem 1rem; top: 1rem; width: auto; z-index: 100000;
}
.ns-shell { width: min(var(--ns-shell), calc(100% - (var(--ns-page-gutter) * 2))); margin-inline: auto; }
.ns-section { padding: 112px 0; position: relative; }
.ns-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4,7,12,.75); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ns-header-inner { min-height: 76px; width: min(var(--ns-header-shell), calc(100% - (var(--ns-page-gutter) * 2))); margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.ns-brand { display: flex; align-items: center; text-decoration: none; min-width: 230px; }
.ns-logo-img { height: 40px; width: auto; display: block; }
.ns-main-nav { flex: 1; display: flex; justify-content: center; }
.ns-nav-list { display: flex; list-style: none; padding: 0; margin: 0; gap: 30px; align-items: center; }
.ns-nav-list a { color: rgba(230,237,245,.72); text-decoration: none; font-size: 14px; letter-spacing: .01em; position: relative; padding: 4px 0; }
.ns-nav-list a:hover, .ns-nav-list .current-menu-item > a { color: #fff; }
.ns-nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ns-blue); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.ns-nav-list a:hover::after, .ns-nav-list .current-menu-item > a::after { transform: scaleX(1); }
.ns-header-cta, .ns-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ns-blue);
  background: var(--ns-blue); color: var(--ns-ink); font-weight: 700; text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ns-header-cta { min-height: 38px; padding-inline: 14px; font-size: 13px; }
.ns-button:hover, .ns-header-cta:hover { transform: translateY(-1px); background: var(--ns-blue-bright); box-shadow: 0 14px 44px rgba(39,170,225,.22); }
.ns-button-ghost { background: transparent; color: var(--ns-text); border-color: var(--ns-line-hi); }
.ns-button-ghost:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.28); color: #fff; box-shadow: none; }
.ns-menu-toggle { display: none; }

.ns-hero { min-height: calc(100vh - 76px); display: grid; align-items: center; padding: 72px 0 116px; position: relative; overflow: hidden; }
.ns-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(circle at 55% 35%, #000, transparent 70%); opacity: .55; pointer-events: none; }
.ns-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; }
.ns-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--ns-blue); font-family: var(--ns-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.ns-eyebrow span { width: 32px; height: 1px; background: var(--ns-blue); display: inline-block; box-shadow: 0 0 12px var(--ns-blue); }
.ns-hero h1, .ns-page-hero h1 { font-size: clamp(48px, 7vw, 102px); line-height: .96; letter-spacing: -.055em; margin: 28px 0; font-weight: 700; max-width: 850px; }
.ns-hero p { color: var(--ns-muted); font-size: clamp(18px, 2vw, 22px); max-width: 610px; margin: 0; }
.ns-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 42px; }
.ns-hero-proof { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 50px; color: var(--ns-faint); font-family: var(--ns-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.ns-hero-proof span { border-left: 1px solid var(--ns-deep); padding-left: 14px; }
/* --orbit-size is the single source of truth for the hero's circular system.
 * Every ring inset, dot position, and callout offset is expressed as a fraction of it,
 * so the whole composition stays in proportion at any viewport / zoom level. */
.ns-orbit-wrap { --orbit-size: min(520px, 84vw); position: relative; min-height: 560px; display: grid; place-items: center; }
.ns-orbit-visual { display: grid; place-items: center; }
.ns-orbit { position: relative; width: var(--orbit-size); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(39,170,225,.24), rgba(14,63,96,.12) 38%, transparent 69%); overflow: visible; }
.ns-orbit-logo { width: 22.31%; max-width: 116px; filter: drop-shadow(0 0 26px rgba(39,170,225,.34)); position: relative; z-index: 8; animation: none !important; transform: none !important; }
/* The orbit visual is rendered as an SVG with viewBox -260 -260 520 520, so every
 * arc endpoint and dot center is expressed in the same coordinate system as a 520 px
 * design. The SVG scales itself to fill .ns-orbit (which is sized via --orbit-size),
 * which means dots welded to arc endpoints stay welded at any viewport / zoom. */
.ns-orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; z-index: 1; pointer-events: none; }
.ns-svg-ring { transform-box: fill-box; transform-origin: center; will-change: transform; }
.ns-svg-ring-1 { animation: nsOrbitClockwise 18s linear infinite; }
.ns-svg-ring-2 { animation: nsOrbitClockwise 13s linear infinite; }
.ns-svg-ring-3 { animation: nsOrbitClockwise 8s linear infinite, nsPulse 2.6s ease-in-out infinite alternate; }
.ns-callout { position: absolute; display: flex; align-items: center; gap: 0; z-index: 10; }
/* Version A: no tip object; line touches orbit directly with no endpoint marker. */
.ns-callout-anchor { width: 0; height: 0; background: transparent; box-shadow: none; flex: 0 0 0; overflow: hidden; }
/* HTML callout-line span reserves layout space so the label lands at the correct
 * position; the visible line itself is drawn by the SVG with the orbit-knockout mask
 * applied, which gives clean gaps at every ring crossing. */
.ns-callout-line { width: var(--line-w, 96px); height: 1px; background: transparent; flex: 0 0 var(--line-w, 96px); }
.callout-a .ns-orbit-label, .callout-c .ns-orbit-label { margin-left: 10px; }
.callout-b .ns-orbit-label { margin-right: 10px; }
.ns-orbit-label { color: var(--ns-blue); font-family: var(--ns-mono); font-size: 11px; letter-spacing: .08em; background: rgba(4,7,12,.72); border: 1px solid rgba(39,170,225,.22); padding: 8px 12px; white-space: nowrap; }
/* Callout anchors are placed on each orbit's perimeter as fractions of --orbit-size.
 * Originals were calibrated against a 520 px orbit: a=(159,-180), b=(-161,60), c=(103,18).
 * Dividing by 520 gives the proportional factors used below. */
.callout-a { left: calc(50% + 0.3058 * var(--orbit-size)); top: calc(50% - 0.3462 * var(--orbit-size)); --line-w: calc(0.2846 * var(--orbit-size)); transform: translateY(-50%); }
.callout-b { right: calc(50% + 0.3096 * var(--orbit-size)); top: calc(50% + 0.1154 * var(--orbit-size)); --line-w: calc(0.2615 * var(--orbit-size)); transform: translateY(-50%); }
.callout-c { left: calc(50% + 0.1981 * var(--orbit-size)); top: calc(50% + 0.0346 * var(--orbit-size)); --line-w: calc(0.3173 * var(--orbit-size)); transform: translateY(-50%); }
@keyframes nsOrbitClockwise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes nsOrbitCounter { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes nsPulse { from { opacity: .55; } to { opacity: 1; } }

.ns-signal-strip { border-block: 1px solid var(--ns-line); background: rgba(10,17,26,.5); padding: 22px 0; }
.ns-signal-strip .ns-shell { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.ns-signal-strip span { font-family: var(--ns-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ns-faint); }
.ns-signal-strip strong { color: rgba(230,237,245,.72); font-weight: 600; letter-spacing: .04em; }
.ns-section-head { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 48px; }
.ns-section-head h2, .ns-feature-grid h2, .ns-two-col h2, .ns-cta-band h2 { font-size: clamp(36px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.04em; margin: 16px 0 0; }
.ns-section-head p, .ns-feature-grid p, .ns-two-col p, .ns-cta-band p { color: var(--ns-muted); font-size: 18px; max-width: 520px; margin: 0; }
.ns-layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ns-line); }
.ns-layer-card { min-height: 480px; padding: 34px 30px; background: var(--ns-card); border-right: 1px solid var(--ns-line); display: flex; flex-direction: column; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.ns-layer-card:last-child { border-right: 0; }
.ns-layer-card:hover { background: var(--ns-card-hi); transform: translateY(-2px); }
.ns-layer-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--ns-mono); font-size: 11px; letter-spacing: .12em; }
.ns-layer-top span { color: var(--ns-blue); border: 1px solid rgba(39,170,225,.28); background: rgba(39,170,225,.08); padding: 4px 8px; }
.ns-layer-top em { color: var(--ns-mute); font-style: normal; }
.ns-layer-card h3 { font-size: 32px; line-height: 1.05; letter-spacing: -.035em; margin: 42px 0 16px; }
.ns-layer-card p { color: var(--ns-muted); margin: 0; }
.ns-layer-card ul { list-style: none; margin: auto 0 0; padding: 32px 0 0; display: grid; gap: 11px; }
.ns-layer-card li { font-family: var(--ns-mono); font-size: 12px; color: #cbd5e1; display: flex; gap: 10px; align-items: center; }
.ns-layer-card li::before { content: ""; width: 5px; height: 5px; background: var(--ns-blue); display: inline-block; flex: 0 0 5px; }
.ns-dark-panel-section { background: linear-gradient(180deg, rgba(7,11,18,.2), rgba(7,11,18,.82)); border-block: 1px solid var(--ns-line); }
.ns-feature-grid, .ns-two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.ns-feature-list { display: grid; gap: 1px; background: var(--ns-line); border: 1px solid var(--ns-line); }
.ns-feature-list article { background: var(--ns-ink); padding: 28px; }
.ns-feature-list span, .ns-process-grid span, .ns-service-list span { font-family: var(--ns-mono); color: var(--ns-blue); font-size: 11px; letter-spacing: .14em; }
.ns-feature-list h3, .ns-mini-card h3, .ns-process-grid h3, .ns-tech-grid h2 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -.025em; }
.ns-feature-list p, .ns-mini-card p, .ns-process-grid p, .ns-tech-grid p, .ns-solution-card p, .ns-service-list p { color: var(--ns-muted); margin: 0; }
.ns-card-grid { display: grid; gap: 1px; background: var(--ns-line); border: 1px solid var(--ns-line); }
.ns-card-grid.three { grid-template-columns: repeat(3, 1fr); }
.ns-card-grid.four { grid-template-columns: repeat(4, 1fr); }
.ns-mini-card, .ns-solution-card, .ns-tech-grid article, .ns-post-card, .ns-contact-card { background: var(--ns-card); padding: 28px; min-height: 220px; }
.ns-mini-card:hover, .ns-solution-card:hover, .ns-tech-grid article:hover, .ns-post-card:hover { background: var(--ns-card-hi); }
.ns-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ns-line); border: 1px solid var(--ns-line); }
.ns-process-grid article { background: var(--ns-card); padding: 28px; min-height: 230px; }
.ns-cta-band { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: 52px; background: linear-gradient(135deg, rgba(39,170,225,.13), rgba(14,63,96,.20)); border: 1px solid rgba(39,170,225,.24); }
.ns-cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px dashed rgba(39,170,225,.34); }
.ns-cta-band > * { position: relative; z-index: 1; }

.ns-page-hero { padding: 104px 0 78px; border-bottom: 1px solid var(--ns-line); background: radial-gradient(circle at 80% 0%, rgba(39,170,225,.12), transparent 30rem); }
.ns-page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.ns-page-hero h1 { font-size: clamp(44px, 6vw, 82px); margin-bottom: 0; }
.ns-page-lede { font-size: 20px; color: var(--ns-muted); margin: 0; }
.ns-architecture-stack { display: grid; gap: 12px; }
.ns-architecture-stack div { background: var(--ns-card); border: 1px solid var(--ns-line); padding: 22px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.ns-architecture-stack strong { color: #fff; } .ns-architecture-stack span { color: var(--ns-muted); font-family: var(--ns-mono); font-size: 12px; text-align: right; }
.ns-solution-card span { color: var(--ns-blue); font-family: var(--ns-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ns-solution-card h2 { margin: 16px 0 12px; font-size: 28px; line-height: 1.06; letter-spacing: -.035em; }
.ns-service-list { border-top: 1px solid var(--ns-line); }
.ns-service-list article { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--ns-line); }
.ns-service-list h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.03em; }
.ns-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ns-line); border: 1px solid var(--ns-line); }
.ns-rich-text { color: var(--ns-muted); font-size: 18px; }
.ns-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ns-line); border: 1px solid var(--ns-line); }
.ns-contact-card h2 { margin-top: 0; font-size: 32px; }
.ns-contact-card ul { margin: 0; padding-left: 20px; color: var(--ns-muted); }
.ns-contact-card li { margin-bottom: 10px; }
.ns-contact-card.muted { background: rgba(10,17,26,.7); }
.ns-note { font-family: var(--ns-mono); color: var(--ns-faint) !important; font-size: 12px; margin-top: 28px !important; }
.ns-page-content { max-width: 900px; color: #dbe5ee; font-size: 18px; }
.ns-page-content a { color: var(--ns-blue); }
.ns-page-content h2 { font-size: 36px; letter-spacing: -.03em; margin-top: 2em; }
.ns-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ns-line); border: 1px solid var(--ns-line); }
.ns-post-card span { color: var(--ns-blue); font-family: var(--ns-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ns-post-card h2 { margin: 14px 0 10px; font-size: 26px; line-height: 1.12; }
.ns-post-card h2 a { text-decoration: none; }
.ns-post-card h2 a:hover { color: var(--ns-blue); }
.ns-site-footer { border-top: 1px solid var(--ns-line); padding: 64px 0 34px; background: #03060a; }
.ns-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.ns-footer-brand img { display: block; width: auto; height: 34px; }
.ns-footer-brand p { color: var(--ns-faint); max-width: 340px; margin: 0 0 20px; }
.ns-footer-brand span { color: var(--ns-blue); font-family: var(--ns-mono); font-size: 12px; letter-spacing: .12em; }
.ns-site-footer h2 { color: var(--ns-blue); font-family: var(--ns-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.ns-site-footer a { display: block; color: var(--ns-faint); text-decoration: none; margin-bottom: 10px; font-size: 14px; }
.ns-site-footer a:hover { color: var(--ns-blue); }
.ns-footer-bottom { display: flex; justify-content: space-between; gap: 24px; color: var(--ns-mute); font-family: var(--ns-mono); font-size: 11px; border-top: 1px solid var(--ns-line); margin-top: 44px; padding-top: 24px; }

.ns-diagram-wrap { background: rgba(94,195,234,0.02); border: 1px solid rgba(94,195,234,0.14); border-radius: 8px; padding: 24px; }
.ns-diagram-wrap img { display: block; width: 100%; height: auto; }
.ns-cross-link-row { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ns-line); }
.ns-cross-link { color: var(--ns-faint); font-size: 14px; margin: 18px 0 0; }
.ns-cross-link a { color: var(--ns-blue); text-decoration: none; font-weight: 500; }
.ns-cross-link a:hover { color: var(--ns-blue-bright, #5EC3EA); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1600px) {
  .ns-hero h1, .ns-page-hero h1 { max-width: 1040px; }
  .ns-page-lede { max-width: 680px; }
  .ns-section-head p, .ns-feature-grid p, .ns-two-col p, .ns-cta-band p { max-width: 680px; }
  .ns-layer-card { min-height: 520px; }
}

@media (max-width: 1040px) {
  .ns-header-inner { gap: 16px; }
  .ns-brand { min-width: 190px; }
  .ns-logo-img { height: 34px; }
  .ns-main-nav { position: fixed; inset: 76px 0 auto 0; background: rgba(4,7,12,.96); border-bottom: 1px solid var(--ns-line); padding: 24px; display: none; }
  .ns-main-nav.is-open { display: block; }
  .ns-nav-list { flex-direction: column; align-items: flex-start; gap: 18px; width: min(var(--ns-shell), calc(100% - (var(--ns-page-gutter) * 2))); margin: 0 auto; }
  .ns-menu-toggle { display: inline-flex; margin-left: auto; background: transparent; color: var(--ns-text); border: 1px solid var(--ns-line-hi); border-radius: 999px; min-height: 38px; padding: 0 12px; align-items: center; gap: 4px; }
  .ns-menu-toggle span { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--ns-blue); }
  .ns-menu-toggle strong { font-size: 12px; font-weight: 600; margin-left: 6px; }
  .ns-header-cta { display: none; }
  .ns-hero-grid, .ns-page-hero-grid, .ns-feature-grid, .ns-two-col { grid-template-columns: 1fr; }
  .ns-orbit-wrap { min-height: 440px; }
  .ns-layer-grid, .ns-card-grid.three, .ns-card-grid.four, .ns-process-grid, .ns-tech-grid, .ns-post-grid, .ns-contact-grid { grid-template-columns: 1fr 1fr; }
  .ns-layer-card { border-bottom: 1px solid var(--ns-line); }
  .ns-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ns-shell, .ns-header-inner { width: min(100% - 32px, var(--ns-shell)); }
  .ns-section { padding: 72px 0; }
  .ns-hero { padding: 54px 0 76px; }
  .ns-hero h1, .ns-page-hero h1 { font-size: clamp(42px, 15vw, 66px); }
  .ns-hero-actions, .ns-cta-band, .ns-section-head, .ns-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ns-hero-proof { gap: 12px; }
  .ns-orbit-wrap { --orbit-size: min(350px, 82vw); min-height: 360px; }
  .ns-callout { display: none; }
  .ns-layer-grid, .ns-card-grid.three, .ns-card-grid.four, .ns-process-grid, .ns-tech-grid, .ns-post-grid, .ns-contact-grid, .ns-footer-grid { grid-template-columns: 1fr; }
  .ns-layer-card { border-right: 0; min-height: auto; }
  .ns-service-list article { grid-template-columns: 1fr; gap: 14px; }
  .ns-architecture-stack div { flex-direction: column; align-items: flex-start; }
  .ns-architecture-stack span { text-align: left; }
  .ns-cta-band { padding: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  * { transition-duration: .01ms !important; }
  .ns-svg-ring { animation: none !important; }
}
