/* NSS Network Security Shield — shared site styles.
   Palette matches otm.nss.network (navy / blue / purple on a light background). */
:root {
  --navy: #161925;
  --navy-2: #1f2336;
  --navy-muted: #8890ab;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2330;
  --muted: #667085;
  --border: #dde2ea;
  --blue: #0a8fd1;
  --purple: #7b3fbf;
  --green: #1f8a4c;
  --grad: linear-gradient(135deg, #0a8fd1 0%, #7b3fbf 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 20px 48px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid rgba(10, 143, 209, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo img { height: 44px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 10px;
  color: #3b4456; text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: #eef2f7; color: var(--text); }
.site-nav a.active { color: var(--blue); background: rgba(10, 143, 209, .08); }
.site-nav a.nav-cta { background: var(--grad); color: #fff; font-weight: 600; margin-left: 8px; padding: 9px 18px; }
.site-nav a.nav-cta:hover { filter: brightness(1.08); }
.site-nav a.nav-cta.active { color: #fff; }
.ext::after { content: "↗"; font-size: .8em; margin-left: 4px; opacity: .6; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(10, 143, 209, .25); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 12px 26px rgba(123, 63, 191, .28); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #b9c2d0; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Pills / kickers ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: #3b4456;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: #0a8fd1; top: -220px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: #7b3fbf; bottom: -260px; left: -160px; opacity: .22; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 22px 0 22px; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.status-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; }
.status-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.status-card-head strong { font-size: 15px; }
.status-card-head span { font-size: 12px; font-weight: 600; color: var(--green); background: #e8f6ee; border-radius: 999px; padding: 4px 10px; }
.status-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px dashed var(--border); }
.status-row:last-child { border-bottom: none; }
.status-row .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(10, 143, 209, .09); color: var(--blue); }
.status-row:nth-child(odd) .ico { background: rgba(123, 63, 191, .09); color: var(--purple); }
.status-row .ico svg { width: 20px; height: 20px; }
.status-row .txt { flex: 1; }
.status-row .txt strong { display: block; font-size: 15px; }
.status-row .txt small { color: var(--muted); font-size: 13px; }
.status-row .ok { font-size: 12px; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.status-row .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 260px at 50% 0%, rgba(10, 143, 209, .14), transparent 70%),
              radial-gradient(500px 240px at 80% 100%, rgba(123, 63, 191, .10), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.page-hero .lede { max-width: 680px; margin: 18px auto 0; color: var(--muted); font-size: 1.1rem; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card.hover:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c9d2df; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(10, 143, 209, .12), rgba(123, 63, 191, .12)); color: var(--blue);
}
.icon-badge svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--blue); transition: gap .15s ease; }
a.card:hover .card-link { gap: 10px; }

/* numbered steps */
.step-num { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--purple); margin-bottom: 12px; display: block; }
.step-tag { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: #e8f6ee; border-radius: 999px; padding: 4px 10px; }

/* two-column text + panel */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.prose p { color: #475467; font-size: 1.05rem; margin-bottom: 18px; }
.prose p strong { color: var(--text); }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.facts li:last-child { border-bottom: none; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; }
.facts li a { color: var(--blue); text-decoration: none; }
.facts li a:hover { text-decoration: underline; }
.panel-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* ---------- Dark CTA band ---------- */
.band { padding: 0 0 88px; }
.band-inner {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px 56px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.band-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 100% 0%, rgba(10, 143, 209, .45), transparent 70%),
              radial-gradient(420px 260px at 0% 100%, rgba(123, 63, 191, .40), transparent 70%);
}
.band-inner > * { position: relative; }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.band p { color: #c3c9da; margin-top: 10px; font-size: 1.05rem; max-width: 560px; }

/* ---------- Tools ---------- */
.tool-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.tool-row .icon-badge { margin-bottom: 0; width: 56px; height: 56px; border-radius: 16px; }
.tool-row .icon-badge svg { width: 28px; height: 28px; }
.tool-row h3 { font-size: 1.25rem; }
.tool-row .tool-meta { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--purple); }
.tool-list { display: flex; flex-direction: column; gap: 18px; }

/* detail page aside */
.aside-card { position: sticky; top: 96px; }
.aside-card .btn { width: 100%; margin-top: 20px; }
.aside-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.feature-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: #475467; }
.feature-list li svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-card .big-mail {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 143, 209, .08), rgba(123, 63, 191, .08));
  color: var(--text); text-decoration: none; margin-bottom: 14px; transition: transform .15s ease;
}
.contact-card .big-mail:hover { transform: translateY(-2px); }
.contact-card .big-mail .icon-badge { margin: 0; background: var(--grad); color: #fff; }
.contact-card .big-mail small { display: block; color: var(--muted); font-size: 13px; }
.contact-card .big-mail strong { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-muted); padding: 64px 0 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: auto; }
.footer-brand span { font-weight: 800; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.footer-brand span small { display: block; font-weight: 500; font-size: 12px; color: var(--navy-muted); letter-spacing: .06em; }
.footer-about { font-size: 14px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--navy-muted); text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px rgba(16, 24, 40, .1);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 2px; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 1fr; gap: 16px; }
  .tool-row .btn { width: 100%; }
  .band-inner { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
