:root {
  --ns-blue: #165DFF;
  --ns-blue-dark: #0E42D2;
  --ns-blue-soft: #EEF4FF;
  --ns-navy: #0B1324;
  --ns-navy-2: #121D35;
  --ns-amber: #D97706;
  --ns-text: #141B29;
  --ns-muted: #5A6478;
  --ns-border: #E5EAF2;
  --ns-surface: #F7F9FC;
  --ns-max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ns-text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all .2s; }
img { max-width: 100%; display: block; }
.ns-wrap { max-width: var(--ns-max); margin: 0 auto; padding: 0 24px; }

/* Header */
.ns-header {
  position: sticky; top: 0; z-index: 90; height: 70px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ns-border); display: flex; align-items: center;
}
.ns-header-in {
  width: 100%; max-width: var(--ns-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ns-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ns-text); }
.ns-brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ns-blue);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 900;
}
.ns-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.ns-nav > a { padding: 8px 0; color: var(--ns-muted); position: relative; white-space: nowrap; }
.ns-nav > a:hover, .ns-nav > a.active { color: var(--ns-blue); font-weight: 600; }
.ns-nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ns-blue); transform: scaleX(0); transition: transform .2s; }
.ns-nav > a:hover::after, .ns-nav > a.active::after { transform: scaleX(1); }
.ns-actions { display: flex; align-items: center; gap: 12px; }
.cms-lang-slot select, .cms-lang-slot a { color: var(--ns-muted); background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.ns-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.ns-btn-primary { background: var(--ns-blue); color: #fff !important; }
.ns-btn-primary:hover { background: var(--ns-blue-dark); }
.ns-btn-ghost { background: #fff; color: var(--ns-text); border-color: var(--ns-border); }
.ns-btn-ghost:hover { border-color: var(--ns-blue); color: var(--ns-blue); }
.mob-nav-chk { display: none; }
.mob-nav-btn { display: none; cursor: pointer; font-size: 22px; }
@media (max-width: 1024px) {
  .ns-nav { display: none; }
  .mob-nav-btn { display: block; }
  .mob-nav-chk:checked ~ .ns-mob-drawer { transform: translateX(0); }
}
.ns-mob-drawer {
  position: fixed; top: 70px; right: 0; bottom: 0; width: 260px; z-index: 88;
  background: #fff; padding: 24px; box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  transform: translateX(105%); transition: transform .25s; display: flex; flex-direction: column; gap: 12px;
}
.ns-mob-drawer a { padding: 10px 0; border-bottom: 1px solid var(--ns-border); font-size: 15px; }

/* Hero */
.ns-hero {
  background: var(--ns-navy); color: #fff; padding: 76px 0 84px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ns-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ns-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border-radius: 999px; background: rgba(22,93,255,0.18); border: 1px solid rgba(90,148,255,0.35);
  color: #93B8FF; font-size: 12px; font-weight: 600; margin-bottom: 20px;
}
.ns-hero h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.ns-hero p { margin-top: 18px; font-size: 16px; color: rgba(255,255,255,0.78); line-height: 1.75; max-width: 540px; }
.ns-hero-btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.ns-browser {
  background: #141E36; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  overflow: hidden; box-shadow: 0 28px 60px rgba(0,0,0,0.45);
}
.ns-browser-bar { display: flex; gap: 6px; padding: 11px 16px; background: #0E1629; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ns-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); display: block; }

/* Metrics Strip */
.ns-metrics { background: var(--ns-surface); border-bottom: 1px solid var(--ns-border); padding: 34px 0; }
.ns-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.ns-metric strong { display: block; font-size: 32px; font-weight: 800; color: var(--ns-blue); line-height: 1.1; }
.ns-metric span { display: block; margin-top: 6px; font-size: 13px; color: var(--ns-muted); }

/* Sections */
.ns-sec { padding: 80px 0; }
.ns-sec-alt { background: var(--ns-surface); }
.ns-sec-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.ns-eyebrow { font-size: 12px; font-weight: 700; color: var(--ns-blue); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.ns-h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.3; }
.ns-sub { margin-top: 12px; font-size: 15px; color: var(--ns-muted); }

/* Feature Grid */
.ns-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ns-feat-card {
  background: #fff; border: 1px solid var(--ns-border); border-radius: 12px; padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.ns-feat-card:hover { border-color: var(--ns-blue); box-shadow: 0 12px 30px rgba(22,93,255,0.08); }
.ns-feat-num { font-size: 12px; font-weight: 800; color: var(--ns-blue); background: var(--ns-blue-soft); padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 14px; }
.ns-feat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.ns-feat-card p { font-size: 14px; color: var(--ns-muted); line-height: 1.75; }

/* Theme Showcase Grid */
.ns-theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ns-theme-card {
  background: #fff; border: 1px solid var(--ns-border); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.ns-theme-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(11,19,36,0.08); border-color: var(--ns-blue); }
.ns-theme-preview {
  height: 190px; background: var(--ns-surface); position: relative; overflow: hidden;
  border-bottom: 1px solid var(--ns-border);
}
.ns-theme-preview iframe {
  width: 1440px; height: 960px; border: 0; pointer-events: none;
  transform: scale(0.27); transform-origin: top left;
}
.ns-theme-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ns-theme-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ns-theme-top h3 { font-size: 16px; font-weight: 700; }
.ns-theme-tag { font-size: 11px; font-weight: 600; color: var(--ns-blue); background: var(--ns-blue-soft); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.ns-theme-desc { font-size: 13px; color: var(--ns-muted); line-height: 1.6; margin-bottom: 14px; }

/* Pricing Cards (Dynamic {cms:plans}) */
.ns-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.ns-plan-card {
  background: #fff; border: 1px solid var(--ns-border); border-radius: 14px; padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
}
.ns-plan-card.is-featured { border: 2px solid var(--ns-blue); box-shadow: 0 18px 40px rgba(22,93,255,0.1); }
.ns-plan-rec { display: none; position: absolute; top: -11px; right: 20px; background: var(--ns-amber); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ns-plan-card.is-featured .ns-plan-rec { display: inline-block; }
.ns-plan-price { margin: 16px 0 8px; font-size: 36px; font-weight: 800; color: var(--ns-text); }
.ns-plan-price small { font-size: 14px; font-weight: 500; color: var(--ns-muted); }
.ns-plan-quotas { list-style: none; margin: 18px 0 24px; padding-top: 16px; border-top: 1px solid var(--ns-border); display: grid; gap: 10px; font-size: 13px; }
.ns-plan-quotas li { display: flex; justify-content: space-between; color: var(--ns-muted); }
.ns-plan-quotas li strong { color: var(--ns-text); font-weight: 600; }

/* Steps & Split */
.ns-steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ns-step-box { background: #fff; border: 1px solid var(--ns-border); border-radius: 12px; padding: 28px; }
.ns-step-idx { font-size: 28px; font-weight: 900; color: var(--ns-blue); margin-bottom: 10px; }
.ns-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* CTA & Footer */
.ns-cta-band { background: var(--ns-navy); color: #fff; padding: 72px 0; text-align: center; }
.ns-cta-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.ns-cta-band p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 28px; }
.ns-footer { background: #070D1A; color: rgba(255,255,255,0.72); padding: 56px 0 28px; font-size: 13px; }
.ns-ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ns-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.ns-footer ul { list-style: none; display: grid; gap: 9px; }
.ns-footer ul a:hover { color: #fff; }
.ns-ft-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.48); }

/* Inner Banner */
.ns-page-head { background: var(--ns-navy); color: #fff; padding: 56px 0; }
.ns-page-head h1 { font-size: 34px; font-weight: 800; margin-top: 8px; }
.ns-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ns-filter-btn { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--ns-border); background: #fff; font-size: 13px; cursor: pointer; color: var(--ns-muted); }
.ns-filter-btn.active, .ns-filter-btn:hover { background: var(--ns-blue); border-color: var(--ns-blue); color: #fff; }

@media (max-width: 960px) {
  .ns-hero-grid, .ns-metrics-grid, .ns-feat-grid, .ns-theme-grid, .ns-steps-3, .ns-split, .ns-ft-grid { grid-template-columns: 1fr; }
}
