/* Shared styles for noxed.app's content pages (features, download, docs,
   security, 404). The homepage keeps its own inline styles; the tokens, nav,
   buttons, and footer below mirror it so the pages read as one site. */

:root {
  --bg: #07060e;
  --bg-soft: #0c0a18;
  --panel: rgba(167, 139, 250, 0.04);
  --border: rgba(167, 139, 250, 0.14);
  --border-bright: rgba(167, 139, 250, 0.35);
  --text: #ece9fb;
  --text-dim: #9d96bf;
  --text-faint: #645d85;
  --violet: #a78bfa;
  --violet-deep: #6d28d9;
  --indigo: #4c6ef5;
  --radius: 16px;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: rgba(109, 40, 217, 0.55); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(7, 6, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
.nav-brand svg { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-gh {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text) !important;
  background: rgba(167, 139, 250, 0.07);
}
.nav-gh:hover { background: rgba(167, 139, 250, 0.16); }
@media (max-width: 720px) { .nav-links a:not(.nav-gh) { display: none; } }

/* ---------- content ---------- */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) 16px 80px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
h1 {
  margin-top: 10px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.lede { margin-top: 18px; font-size: 18px; color: var(--text-dim); max-width: 640px; }
h2 {
  margin-top: 56px;
  font-size: clamp(22px, 3.4vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.25;
}
h3 { margin-top: 28px; font-size: 17px; letter-spacing: -0.01em; }
main p, main ul, main ol { margin-top: 12px; color: var(--text-dim); }
main ul, main ol { padding-left: 22px; }
main li { margin-top: 6px; }
main li::marker { color: var(--violet); }
main strong { color: var(--text); font-weight: 600; }
main p a, main li a, main td a { color: var(--violet); border-bottom: 1px solid rgba(167, 139, 250, 0.35); }
main p a:hover, main li a:hover, main td a:hover { border-bottom-color: var(--violet); }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--text);
  background: rgba(167, 139, 250, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}
pre {
  margin-top: 14px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}
pre code { background: none; padding: 0; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 1px 6px;
  border: 1px solid var(--border-bright);
  border-radius: 5px;
  color: var(--text);
}
figure { margin-top: 28px; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
figcaption { margin-top: 8px; font-size: 13px; color: var(--text-faint); }

.table-wrap { margin-top: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--text-dim); }

.note {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 15px;
}

.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(110deg, var(--violet-deep), var(--indigo));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35) inset, 0 8px 32px -8px rgba(109, 40, 217, 0.65);
}
.btn-ghost { border: 1px solid var(--border-bright); color: var(--text); background: rgba(12, 10, 24, 0.55); }
.btn:hover { transform: translateY(-2px); }

.next {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.next a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.2s;
}
.next a:hover { border-color: var(--border-bright); }
.next span { display: block; font-size: 12px; color: var(--text-faint); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-dim); }
.foot-brand svg { width: 22px; height: 22px; border-radius: 6px; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
footer nav a:hover { color: var(--text); }
footer > span { justify-self: end; }
@media (max-width: 760px) {
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer > span { justify-self: center; }
}
