/* nvmx landing page — Node.js-inspired, Inter */

:root {
  --green:      #5fa04e;
  --green-d:    #437a32;
  --green-tint: #eef5ec;
  --ink:        #1b1f1a;
  --muted:      #5c645a;
  --bg:         #ffffff;
  --surface:    #f6f8f5;
  --border:     #e3e8e0;
  --term-bg:    #0d1117;
  --term-ink:   #cdd5de;
  --term-grn:   #7ee787;
  --term-path:  #79c0ff;
  --term-mut:   #8b949e;
  --radius:     12px;
  --maxw:       1080px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

a { color: var(--green-d); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--green-tint);
  color: var(--green-d);
  padding: 0.12em 0.38em;
  border-radius: 5px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__hex { color: var(--green); flex: none; }
.brand__text { font-weight: 700; font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.brand__text strong { color: var(--green); }
.brand__sub { font-size: 0.66rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--green-d); text-decoration: none; }
.nav__ghbtn {
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 8px;
}
.nav__ghbtn:hover { border-color: var(--green); background: var(--green-tint); }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 10px; transition: transform .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-d); }
.btn--ghost { color: var(--ink); border: 1px solid var(--border); background: #fff; }
.btn--ghost:hover { border-color: var(--green); color: var(--green-d); }

/* ---- hero ---- */
.hero { padding: 84px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-d); margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.05; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 20px;
}
.hero h1 code { background: none; padding: 0; color: var(--green); font-size: 0.92em; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 30px; max-width: 30em; }
.lede code { font-size: 0.85em; }

.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.cta--center { justify-content: center; margin-top: 32px; }
.hero__meta { margin: 22px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---- terminal ---- */
.term {
  background: var(--term-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(13,17,23,0.6); border: 1px solid #1c222b;
}
.term__bar {
  display: flex; align-items: center; gap: 9px;
  background: #161b22; color: var(--term-mut);
  font-size: 0.8rem; font-weight: 500; padding: 10px 16px; border-bottom: 1px solid #1c222b;
}
.term__dot { width: 11px; height: 11px; border-radius: 50%; background: #f0f3f6; opacity: .5; }
.term__body { margin: 0; padding: 20px; overflow-x: auto; }
.term__body code {
  background: none; padding: 0; color: var(--term-ink);
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; white-space: pre;
}
.term--plain { box-shadow: none; margin: 14px 0 22px; }
.term--plain .term__body { padding: 16px 18px; }

.c-grn { color: var(--term-grn); }
.c-path { color: var(--term-path); }
.c-mut { color: var(--term-mut); }

/* ---- sections ---- */
.section { padding: 76px 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 22px; }
.section p { font-size: 1.06rem; color: #33392f; }
.section .narrow p { margin: 0 0 18px; }
.section__lede { color: var(--muted); margin: 0 0 32px; }

/* ---- steps ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green-tint); color: var(--green-d);
  font-weight: 700; font-size: 1rem; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 600; }
.step h3 code { font-size: 0.82em; }
.step p { margin: 0; font-size: 0.98rem; color: var(--muted); }

/* ---- code flow ---- */
.codeflow { display: flex; align-items: stretch; gap: 18px; flex-wrap: wrap; }
.code { flex: 1 1 280px; background: var(--term-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid #1c222b; }
.code__label { background: #161b22; color: var(--term-mut); font-size: 0.78rem; padding: 9px 16px; border-bottom: 1px solid #1c222b; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; }
.code code { background: none; padding: 0; color: var(--term-ink); font-family: var(--mono); font-size: 0.85rem; line-height: 1.65; white-space: pre; }
.codeflow__arrow { display: flex; align-items: center; color: var(--green); font-size: 1.6rem; font-weight: 700; }

.note {
  font-size: 0.96rem; color: var(--muted); margin: 26px 0 0;
  border-left: 3px solid var(--green); padding: 4px 0 4px 16px;
}

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 4px 0; }
.feature h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 600; }
.feature p { margin: 0; font-size: 0.98rem; color: var(--muted); }
.feature h3 code, .feature p code { font-size: 0.82em; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand--footer { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.brand--footer svg { color: var(--green); }
.footer__note { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .nav__links { gap: 14px; }
  .nav__links a:not(.nav__ghbtn) { display: none; }
  .features { grid-template-columns: 1fr; }
  .codeflow__arrow { transform: rotate(90deg); width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}