/*
 * NodeAgent corporate site - design system.
 * Tokens are the canonical NodeAgent brand pass (see README.md).
 * System fonts only; zero JS; every page shares this one file.
 * Files stay pure ASCII - typographic characters are HTML entities in markup.
 */

:root {
  --ink: #171c26;
  --body: #3d4656;
  --teal: #0f766e;
  --paper: #ffffff;
  --paper-alt: #f5f7f9;
  --line: #e3e8ee;
  --focus: #b45309;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf0f4;
    --body: #b6bfcc;
    --teal: #2dd4bf;
    --paper: #0f1319;
    --paper-alt: #161b23;
    --line: #262e3a;
    --focus: #fbbf24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1rem; max-width: 40rem; }
a { color: var(--teal); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
}
.sub { font-size: 1.1875rem; max-width: 44rem; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---- brand lockup ---- */
.lockup { display: inline-flex; align-items: center; gap: 0.55em; text-decoration: none; }
.namark .edges { stroke: var(--body); fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.namark circle { fill: var(--teal); }
.naword { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.naword b { color: var(--teal); font-weight: 650; }

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 1.5em; padding: 0.7em 0; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 1.35em; flex-wrap: wrap; }
nav.main a { color: var(--body); text-decoration: none; font-size: 0.95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--teal); }
@media (max-width: 640px) { nav.main { gap: 0.9em; } nav.main a { font-size: 0.87rem; } }

/* ---- hero ---- */
.hero { padding: 5.5rem 0 4rem; }
.hero .sub { margin-top: 0.4rem; }
.ctas { display: flex; gap: 1em; flex-wrap: wrap; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: 0.8em 1.5em; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--paper); }
.btn-secondary { color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-secondary:hover { box-shadow: inset 0 0 0 2px var(--teal); }

/* ---- sections ---- */
section { padding: 4rem 0; }
section.alt { background: var(--paper-alt); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.6rem; margin-top: 2.2rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem;
}
section.alt .card { background: var(--paper); }
.prodhead { display: flex; align-items: center; gap: 0.6em; }
.card .prodhead { margin-bottom: 0.9rem; }
.card .prodhead img, .card .prodhead svg { width: 34px; height: 34px; }
.card .prodhead .name { font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.card p { margin-bottom: 0.8rem; }
.card .more { font-weight: 600; text-decoration: none; }

/* Sonette mark clear space: brand canon requires >= one bar-width each side. */
.sonmark { display: inline-flex; padding: 4px; }

/* ---- product pages ---- */
.prodhero { padding: 4.5rem 0 3rem; }
/* Hero lockup: mark sized to sit beside the H1, not fill the column. The Sonette SVG
   carries no width attribute (it must stay byte-exact with the brand canon), so this
   rule is the ONLY thing sizing it. */
.prodhero .prodhead { gap: 0.75em; margin-bottom: 0.4rem; }
.prodhero .prodhead img, .prodhero .prodhead svg { width: 46px; height: 46px; flex: none; }
.prodhero .prodhead h1 { margin: 0; }
.prodhero .tagline { color: var(--teal); font-style: italic; margin-top: -0.4rem; }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); display: block;
  box-shadow: 0 10px 30px rgba(13, 20, 32, 0.10); margin: 2rem 0;
}
.statusband { border-left: 4px solid var(--teal); padding: 0.2rem 0 0.2rem 1.2rem; margin: 2rem 0; }
.statusband p { margin: 0.3rem 0; }

/* ---- contact / footer ---- */
.contactband { text-align: center; padding: 4.5rem 0; }
.contactband .mail { font-size: 1.25rem; font-weight: 650; }
footer.site { border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; font-size: 0.92rem; }
footer.site .cols { display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
footer.site h4 { margin: 0 0 0.5em; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0.3em 0; }
footer.site a { color: var(--body); text-decoration: none; }
footer.site a:hover { color: var(--teal); }
.legal { color: var(--body); opacity: 0.85; font-size: 0.85rem; margin-top: 1rem; }
