/* ==========================================================================
   VectorForge marketing site
   Palette: Nord only. Derived from the console's `nord` theme run through the
   mockup's own paletteFor() mapping (VectorForge Marketing Site.dc.html:374-380),
   so every variable name below matches the one the mockup used.
   ========================================================================== */

:root {
  --bg:      #20242e;
  --panel:   #2a2f3b;
  --panel2:  #2e3440;  /* nord.hover */
  --accbg:   #2e3a44;
  --border:  #3b4252;
  --border2: #2e3440;
  --border3: #3b4252;
  --text:    #e5e9f0;
  --sec:     #a3adc0;
  --dim:     #7a869c;
  --dim2:    #4c566a;
  --dim3:    #4c566a;
  --acc:     #88c0d0;
  --acc2:    #a6d4e2;
  --ok:      #a3be8c;
  --bad:     #bf616a;
  --code:    #a3adc0;  /* nord.sec */
  --dot:     #3b4252;  /* nord.border */
  --grid:    #2e3440;  /* nord.border2 */
  --track:   #1b1f28;  /* nord.panel2 */
  --selbg:   #88c0d040;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;

  --wrap: 1180px;
  --gut: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--acc); }
::selection { background: var(--selbg); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* Screen-reader-only. */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--acc);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
}
.skip:focus { left: 0; color: var(--bg); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.spacer { flex: 1; }

@keyframes vfblink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }
@keyframes vfmarq  { to { transform: translateX(-50%) } }

/* ---------------------------------- brand ------------------------------- */

.brand { display: flex; align-items: center; gap: 10px; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.mark {
  width: 16px; height: 16px;
  background: var(--acc);
  display: inline-block;
  transform: rotate(45deg);
  flex: none;
}
.mark--sm { width: 14px; height: 14px; }

/* ---------------------------------- buttons ------------------------------ */

.btn {
  display: inline-block;
  font-size: 14px;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--acc); color: var(--bg); font-weight: 600; }
.btn--primary:hover { background: var(--acc2); color: var(--bg); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--acc); }
.btn--sm { font-size: 13px; font-weight: 600; padding: 9px 16px; }
.btn--md { font-size: 12.5px; font-weight: 600; padding: 11px 20px; }
.btn--lg { font-size: 14px; padding: 14px 26px; }

.link-acc { font-size: 12.5px; color: var(--acc); }
.link-acc:hover { color: var(--acc2); }

/* ---------------------------------- header ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.header__nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--dim);
  margin-left: 8px;
}
.header__nav a { color: var(--dim); }
.header__nav a:hover { color: var(--acc); }
.header__signin { font-size: 13px; color: var(--dim); }
.header__signin:hover { color: var(--acc); }

/* ---------------------------------- hero --------------------------------- */

.hero {
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
}
.hero__inner {
  padding-top: 78px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.hero__h1 {
  font-family: var(--display);
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -1.8px;
  font-weight: 700;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero__lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--sec);
  margin: 0 0 30px;
  max-width: 530px;
  text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--dim2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------- hero demo ------------------------------- */

.demo { border: 1px solid var(--border); background: var(--panel); min-width: 0; }
.demo__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--panel2);
}
.dot { width: 9px; height: 9px; background: var(--dot); border-radius: 50%; }
.demo__cmd { font-size: 11px; color: var(--dim2); margin-left: 6px; }

.demo__tabset { border: 0; margin: 0; padding: 0; min-width: 0; }
.demo__tabs { display: flex; border-bottom: 1px solid var(--border); }
.demo__tab {
  flex: 1;
  text-align: center;
  background: var(--panel2);
  color: var(--dim);
  border-bottom: 2px solid transparent;
  padding: 10px;
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  user-select: none;
}
.demo__tab:hover { color: var(--text); }

#tab-curl:checked   ~ .demo__tabs .demo__tab:nth-of-type(1),
#tab-python:checked ~ .demo__tabs .demo__tab:nth-of-type(2),
#tab-ts:checked     ~ .demo__tabs .demo__tab:nth-of-type(3) {
  background: var(--panel);
  color: var(--acc);
  border-bottom-color: var(--acc);
}

/* The radios are visually hidden but still focusable — mirror their focus ring
   onto the label the user actually sees. */
#tab-curl:focus-visible   ~ .demo__tabs .demo__tab:nth-of-type(1),
#tab-python:focus-visible ~ .demo__tabs .demo__tab:nth-of-type(2),
#tab-ts:focus-visible     ~ .demo__tabs .demo__tab:nth-of-type(3) {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}

.demo__code {
  margin: 0;
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--code);
  overflow-x: auto;
  font-family: var(--mono);
  display: none;
}
#tab-curl:checked   ~ .demo__panels .demo__code--curl,
#tab-python:checked ~ .demo__panels .demo__code--python,
#tab-ts:checked     ~ .demo__panels .demo__code--ts { display: block; }

.demo__hits {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  background: var(--panel2);
}
.demo__hitnote { font-size: 11px; color: var(--dim2); margin: 0 0 9px; }
.hitlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hit {
  display: grid;
  grid-template-columns: 46px 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
}
.hit__score { color: var(--acc); }
.hit__ranks { color: var(--dim2); font-size: 11px; }
.hit__text { color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------- marquee -------------------------------- */

.marquee {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--panel);
}
.marquee__track {
  display: flex;
  gap: 52px;
  padding: 15px 0;
  width: max-content;
  animation: vfmarq 28s linear infinite;
  font-size: 12px;
  color: var(--dim2);
  letter-spacing: 0.4px;
}
.marquee__track span { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------------------------------- bands --------------------------------- */

.band { border-bottom: 1px solid var(--border); }
.band > .wrap { padding-top: 76px; padding-bottom: 76px; }
.band--panel { background: var(--panel); }
.band--tight > .wrap { padding-top: 70px; padding-bottom: 70px; }

.eyebrow { font-size: 12px; color: var(--dim2); margin: 0 0 14px; }

.h2 {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 720px;
  text-wrap: balance;
}
/* The mockup sets each h2's size, bottom margin and measure per section; these
   modifiers + the per-section overrides below reproduce it exactly. */
.h2--sm { font-size: 34px; max-width: none; }
.h2--gap { margin-bottom: 40px; }

#bench    .h2 { margin-bottom: 18px; }
#neutral  .h2 { max-width: 700px; }
#features .h2 { margin-bottom: 46px; max-width: 620px; }
#code     .h2 { margin-bottom: 20px; }
#compare  .h2 { max-width: 640px; }
#pricing  .h2 { max-width: 640px; }

.lede {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dim);
  margin: 0 0 44px;
  max-width: 640px;
  text-wrap: pretty;
}
.lede--wide { max-width: 660px; margin-bottom: 40px; }
#deploy  .lede { max-width: 620px; }
#pricing .lede { max-width: 600px; margin-bottom: 40px; }

.body { font-size: 13.5px; line-height: 1.8; color: var(--dim); margin: 0 0 18px; }
.body--fine { font-size: 12px; line-height: 1.75; color: var(--dim2); margin-bottom: 22px; }

.footnote {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--dim2);
  line-height: 1.7;
}
#compare .footnote { max-width: 820px; }

/* 1px-gap hairline grids: the background bleeds through as the cell divider. */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.hairline-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hairline-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hairline-grid--tight { margin-top: 12px; }

/* -------------------------------- 01 hybrid -------------------------------- */

.pain { background: var(--panel); padding: 28px 24px; }
.pain__bad { font-size: 12px; color: var(--bad); margin: 0 0 12px; }
.pain__good {
  font-size: 14px;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 14px;
  font-weight: 500;
}
.pain__body { font-size: 12.5px; color: var(--dim); line-height: 1.75; margin: 0; }

/* ------------------------------- 02 benchmark ------------------------------ */

.bench {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.bench__chart { display: flex; flex-direction: column; gap: 14px; }
.bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  margin-bottom: 7px;
}
.bar__label { color: var(--sec); }
.bar__value { color: var(--dim); font-weight: 600; }
.bar__track { height: 9px; background: var(--track); border: 1px solid var(--border); }
.bar__fill { height: 100%; background: var(--dim); }
.bar--acc .bar__value { color: var(--acc); }
.bar--acc .bar__fill { background: var(--acc); }
.bench__source { font-size: 11px; color: var(--dim3); margin: 2px 0 0; }

.stat { background: var(--bg); padding: 20px 18px; }
.stat__v { font-family: var(--display); font-size: 24px; color: var(--acc); margin: 0 0 6px; }
.stat__l { font-size: 11.5px; color: var(--dim2); line-height: 1.5; margin: 0; }

/* ------------------------------ 03 neutrality ------------------------------ */

.neutral {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.migrate {
  border: 1px solid var(--border);
  border-top: 2px solid var(--acc);
  padding: 30px 28px;
  min-width: 0;
}
.migrate__kicker { font-size: 11.5px; color: var(--acc); margin: 0 0 14px; }
.migrate__title {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  font-weight: 400; /* the mockup renders this as an unweighted div */
  margin: 0 0 16px;
}
.migrate__body { font-size: 13px; color: var(--dim); line-height: 1.8; margin: 0 0 22px; }

.code-block {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 14px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--code);
  overflow-x: auto;
  font-family: var(--mono);
}
.code-block--lg { padding: 20px; font-size: 12px; line-height: 1.85; }

.neutral__cards { display: flex; flex-direction: column; gap: 14px; }
.ncard { border: 1px solid var(--border); padding: 22px; }
.ncard__t { font-size: 13.5px; font-family: var(--mono); font-weight: 600; margin: 0 0 9px; }
.ncard__b { font-size: 12.5px; color: var(--dim); line-height: 1.75; margin: 0; }

/* ------------------------------- 04 features ------------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { border: 1px solid var(--border); background: var(--bg); padding: 26px 22px; }
.feature:hover { border-color: var(--border3); }
.feature__n { font-family: var(--display); font-size: 22px; color: var(--acc); margin: 0 0 16px; }
.feature__t { font-size: 14.5px; font-family: var(--mono); font-weight: 600; margin: 0 0 10px; }
.feature__b { font-size: 12.5px; color: var(--dim); line-height: 1.8; margin: 0; }

/* --------------------------------- 05 code --------------------------------- */

.code-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.code-split .body { margin-bottom: 24px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bullets li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  font-size: 13px;
  color: var(--sec);
  line-height: 1.65;
}
.bullets li::before { content: "›"; color: var(--acc); }

/* ------------------------------ 06 deployment ------------------------------ */

.deploy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.deploy {
  border: 1px solid var(--border);
  border-top: 2px solid var(--acc);
  background: var(--bg);
  padding: 26px 24px;
}
.deploy__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.deploy__title { font-size: 15px; font-family: var(--mono); font-weight: 600; color: var(--text); margin: 0; }
.deploy__tag { font-size: 11px; color: var(--dim2); }
.deploy__price { font-family: var(--display); font-size: 20px; color: var(--acc); margin: 0 0 14px; }
.deploy__body { font-size: 12.5px; color: var(--dim); line-height: 1.75; margin: 0 0 18px; }
.deploy__rows { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.deploy__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  border-top: 1px solid var(--border2);
  padding-top: 8px;
}
.deploy__rows dt { color: var(--dim2); }
.deploy__rows dd { color: var(--sec); margin: 0; text-align: right; }

/* -------------------------------- 07 matrix -------------------------------- */

.matrix-scroll { border: 1px solid var(--border); overflow-x: auto; }
.matrix {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  min-width: 760px;
  border-collapse: collapse;
  width: 100%;
}
.matrix thead, .matrix tbody, .matrix tr { display: contents; }
.matrix th, .matrix td {
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  display: flex;
  align-items: center;
}
.matrix thead th { background: var(--panel); color: var(--sec); }
.matrix thead th:first-child { color: var(--dim2); }
.matrix tbody th { background: var(--bg); color: var(--sec); }
.matrix tbody td { background: var(--bg); color: var(--sec); }
.matrix .is-yes { color: var(--ok); }
.matrix .is-no  { color: var(--dim2); }

/* -------------------------------- quotes ---------------------------------- */

.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote { border: 1px solid var(--border); padding: 30px 26px; background: var(--bg); margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.quote figcaption { font-size: 12px; color: var(--dim); }
.quote figcaption span { color: var(--dim2); }

/* -------------------------------- 08 pricing ------------------------------- */

.meter { background: var(--panel); padding: 28px 24px; }
.meter__k { font-size: 11.5px; color: var(--dim2); margin: 0 0 14px; }
.meter__v {
  font-family: var(--display);
  font-size: 29px;
  color: var(--acc);
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}
.meter__n { font-size: 11.5px; color: var(--dim); line-height: 1.6; margin: 0; }

.tier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.tier { border: 1px solid var(--border); padding: 26px 24px; }
.tier--acc { background: var(--accbg); }
.tier__t { font-size: 13.5px; font-family: var(--mono); font-weight: 600; margin: 0 0 10px; }
.tier__b { font-size: 12.5px; color: var(--dim); line-height: 1.8; margin: 0 0 18px; }
#pricing .footnote { margin-top: 18px; }

/* ---------------------------------- CTA ------------------------------------ */

.cta__inner { padding-top: 84px; padding-bottom: 90px; text-align: center; }
.cta__cmd { font-size: 13px; color: var(--dim); margin: 0 0 20px; }
.cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--acc);
  margin-left: 6px;
  vertical-align: -2px;
  animation: vfblink 1.1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.cta__h2 {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
}
.cta__lead {
  font-size: 14.5px;
  color: var(--dim);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 30px;
}
.cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------- footer ---------------------------------- */

.site-footer { border-top: 1px solid var(--border); background: var(--panel); }
.footer__grid {
  padding-top: 52px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}
.brand--footer { margin-bottom: 14px; }
.brand--footer .brand__name { font-size: 14px; }
.footer__blurb { font-size: 12px; color: var(--dim2); line-height: 1.8; max-width: 260px; margin: 0; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__head {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--dim2);
  letter-spacing: 0.6px;
  margin: 0 0 4px;
}
.footer__col a { font-size: 12.5px; color: var(--dim); }
.footer__col a:hover { color: var(--acc); }
.footer__legal {
  padding-bottom: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--dim3);
  border-top: 1px solid var(--border2);
}

/* ================================ responsive =============================== */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__h1 { font-size: 44px; letter-spacing: -1.3px; }
  .bench { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .neutral { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .code-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature-grid, .deploy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hairline-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --gut: 20px; }
  .header__nav { display: none; }
  .header__inner { gap: 16px; }
  .band > .wrap, .band--tight > .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero__inner { padding-top: 52px; padding-bottom: 48px; }
  .hero__h1 { font-size: 34px; letter-spacing: -1px; }
  .hero__lead { font-size: 14.5px; }
  .h2 { font-size: 28px; letter-spacing: -0.6px; }
  .h2--sm { font-size: 27px; }
  .cta__h2 { font-size: 32px; letter-spacing: -0.9px; }
  .cta__inner { padding-top: 60px; padding-bottom: 64px; }
  .hairline-grid--3, .hairline-grid--4,
  .feature-grid, .deploy-grid, .quote-grid, .tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .hero__h1 { font-size: 29px; }
  .header__signin { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__trust { gap: 8px 20px; }
  .demo__tab { font-size: 11px; padding: 9px 6px; }
}
