/* ============================================================
   NAUSTONE — Modern Design System
   Dark / Terminal / Algorithmic aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:          #07080f;
  --bg-2:        #0b0e18;
  --bg-card:     rgba(11, 14, 24, 0.75);
  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0, 229, 255, 0.10);
  --cyan-border: rgba(0, 229, 255, 0.18);
  --text:        #e2e6ed;
  --text-muted:  #7d8794;
  --text-dim:    #3d4450;
  --mono:        'JetBrains Mono', 'Courier New', monospace;
  --sans:        'Inter', sans-serif;
  --radius:      6px;
  --transition:  0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; transition: color var(--transition); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
p { color: var(--text-muted); line-height: 1.75; }

/* ---- UTILITY ---- */
.ns-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- OVERLAY ---- */
.ns-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 900;
}
.ns-overlay.show { display: block; }

/* ================================================================
   NAVIGATION
================================================================ */
.ns-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding 0.3s, background 0.3s, border 0.3s;
}
.ns-nav.scrolled {
  background: rgba(7, 8, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cyan-border);
  padding: 14px 0;
}
.ns-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--text); }

/* Labs CTA button in nav */
.nav-labs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--cyan) !important;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.12);
  transition: all var(--transition);
}
.nav-labs-btn:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.28);
  color: var(--cyan) !important;
}

/* Hamburger */
.ns-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.ns-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav drawer */
.ns-mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 260px;
  background: var(--bg-2);
  border-left: 1px solid var(--cyan-border);
  z-index: 1000;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.ns-mobile-nav.open { transform: translateX(0); }
.ns-mobile-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 36px;
}
.ns-mobile-close button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.ns-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ns-mobile-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ns-mobile-labs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 11px 20px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
}

/* ================================================================
   HERO
================================================================ */
.ns-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

/* Dot grid overlay */
.ns-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 229, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* Gradient vignette at bottom */
.ns-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 24px;
}
.terminal-prompt .t-arrow { color: var(--cyan); margin-right: 4px; }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--cyan);
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-h1 {
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-h1 .accent { color: var(--cyan); }

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn-primary-ns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--cyan);
  color: #07080f;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-primary-ns:hover {
  background: #33ecff;
  color: #07080f;
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.38);
  transform: translateY(-2px);
}

.btn-ghost-ns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid var(--cyan-border);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-ghost-ns:hover {
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--text);
}

/* ================================================================
   STATS STRIP
================================================================ */
.ns-stats {
  border-top: 1px solid var(--cyan-border);
  border-bottom: 1px solid var(--cyan-border);
  background: var(--bg-2);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0 32px;
}
.stat-item + .stat-item {
  border-left: 1px solid var(--cyan-border);
}
.stat-number {
  font-family: var(--mono);
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

/* ================================================================
   SECTION STRUCTURE
================================================================ */
.ns-section {
  padding: 96px 0;
}
.ns-section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--cyan-border);
  border-bottom: 1px solid var(--cyan-border);
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ================================================================
   HOW IT WORKS — STEP CARDS
================================================================ */
.ns-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.ns-step-card {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.ns-step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.ns-step-card:hover::before { opacity: 1; }
.ns-step-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 4px 40px rgba(0, 229, 255, 0.08);
  transform: translateY(-3px);
}
.step-num {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 700;
  color: rgba(0, 229, 255, 0.12);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.ns-step-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.ns-step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================================
   ALPHA STANDARD
================================================================ */
.ns-alpha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.alpha-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}
.alpha-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feat-badge {
  min-width: 38px;
  height: 38px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.feat-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.feat-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Terminal block */
.ns-terminal {
  background: #060810;
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  padding: 28px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  position: sticky;
  top: 100px;
}
.ns-terminal-header {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cyan-border);
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red   { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }
.t-filename {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}
.t-line { display: block; white-space: nowrap; }
.t-comment { color: var(--text-dim); }
.t-key     { color: #a5d6ff; }
.t-val     { color: #ffa657; }
.t-pass    { color: #7ee787; }
.t-string  { color: #79c0ff; }
.t-blank   { display: block; height: 8px; }

/* ================================================================
   BROKERS
================================================================ */
.ns-brokers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
/* full 4-col variant for product page */
.ns-brokers-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.ns-broker-card {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.ns-broker-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 4px 28px rgba(0, 229, 255, 0.07);
  transform: translateY(-2px);
}
.broker-logo-wrap {
  background: #fff;
  border-radius: 4px;
  padding: 10px 14px;
  height: 56px;
  display: flex;
  align-items: center;
}
.broker-logo-wrap img {
  max-height: 32px;
  max-width: 130px;
  object-fit: contain;
}
.ns-broker-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.ns-broker-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.broker-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.broker-link:hover { color: #33ecff; }

/* ================================================================
   COMPANY / ABOUT
================================================================ */
.ns-about-box {
  background: var(--bg-2);
  border: 1px solid var(--cyan-border);
  border-radius: 10px;
  padding: 56px 52px;
}
.ns-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.ns-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.ns-tag {
  padding: 5px 13px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.ns-mini-card {
  background: var(--bg);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.ns-mini-card:last-child { margin-bottom: 0; }
.ns-mini-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.ns-mini-card p {
  font-size: 13px;
  margin-bottom: 14px;
}
.ns-mini-card a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
}
.ns-mini-card a:hover { color: #33ecff; }

/* ================================================================
   CONTACT
================================================================ */
.ns-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 52px;
}
.ns-contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cyan);
  min-width: 28px;
  padding-top: 2px;
}
.contact-info-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
}
.contact-info a,
.contact-info p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.contact-info a:hover { color: var(--cyan); }

/* ================================================================
   FOOTER
================================================================ */
.ns-footer {
  background: var(--bg);
  border-top: 1px solid rgba(0, 229, 255, 0.08);
  padding: 44px 0 24px;
}
.ns-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer-nav a:hover { color: var(--cyan); }
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--text-dim);
  font-size: 15px;
}
.footer-social a:hover { color: var(--cyan); }
.ns-footer-disclaimer {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.ns-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.ns-footer-bottom p {
  font-size: 11px;
  color: var(--text-dim);
}
.ns-footer-bottom .mono-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ================================================================
   PAGE HEADER (inner pages)
================================================================ */
.ns-page-header {
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cyan-border);
}
.ns-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}
.ns-page-header .ns-container { position: relative; z-index: 1; }
.page-header-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.page-header-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-header-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin-top: 16px;
  line-height: 1.65;
}

/* ================================================================
   PRODUCT PAGE — FEATURE LIST
================================================================ */
.ns-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.ns-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
}
.feature-bullet {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 14px;
  min-width: 16px;
  padding-top: 1px;
}
.ns-feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================================
   SOLUTIONS PAGE — SERVICE CARDS
================================================================ */
.ns-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.ns-service-card {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.ns-service-card:hover {
  border-color: rgba(0, 229, 255, 0.36);
  box-shadow: 0 4px 32px rgba(0, 229, 255, 0.07);
  transform: translateY(-2px);
}
.service-icon {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--cyan);
  margin-bottom: 18px;
}
.ns-service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.ns-service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA band */
.ns-cta-band {
  background: var(--bg-2);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
  margin-top: 56px;
}
.ns-cta-band h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.ns-cta-band p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.ns-cta-band a.cta-email {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-border);
  padding-bottom: 3px;
}
.ns-cta-band a.cta-email:hover {
  border-color: var(--cyan);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 992px) {
  .nav-links          { display: none; }
  .ns-hamburger       { display: flex; }
  .ns-mobile-nav      { display: block; }

  .ns-steps           { grid-template-columns: 1fr; }
  .ns-alpha-grid      { grid-template-columns: 1fr; }
  .ns-brokers-grid    { grid-template-columns: repeat(2, 1fr); }
  .ns-brokers-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ns-about-grid      { grid-template-columns: 1fr; gap: 32px; }
  .ns-contact-grid    { grid-template-columns: 1fr; gap: 28px; }
  .ns-feature-list    { grid-template-columns: 1fr; }
  .ns-services-grid   { grid-template-columns: 1fr; }
  .ns-about-box       { padding: 36px 28px; }
  .ns-cta-band        { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .stats-grid          { grid-template-columns: 1fr; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--cyan-border); }
  .ns-brokers-grid     { grid-template-columns: 1fr; }
  .ns-brokers-grid.grid-4 { grid-template-columns: 1fr; }
  .ns-footer-top       { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav          { flex-direction: column; gap: 14px; }
  .hero-actions        { flex-direction: column; align-items: flex-start; }
  .ns-page-header      { padding: 120px 0 52px; }
}
