/* NullTick page — layout and components. Tokens, nav, type, cards and footer come from styles.css. */

.nt-page {
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
}
.nt-main { position: relative; z-index: 1; }

/* Long-form page: body text scrolls under the fixed nav constantly, so trade the
   difference blend for a soft scrim that keeps the links legible. */
.nt-page .nav { mix-blend-mode: normal; background: linear-gradient(180deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.7) 62%, rgba(8, 8, 10, 0) 100%); }
.nt-wrap { max-width: 1040px; margin: 0 auto; width: 100%; }

.nt-page code { font-family: var(--mono); font-size: 0.88em; color: #e8e6de; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* ---------- Hero (product-first: benefit, engines, proof) ---------- */
.nt-hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 148px clamp(22px, 5vw, 64px) 84px; overflow: hidden; }
.nt-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 52% at 22% 18%, rgba(116, 136, 218, 0.14), transparent 72%); pointer-events: none; }
.nt-hero .nt-wrap { position: relative; }
.nt-lockup { color: var(--fg); margin: 0 0 28px; }
.nt-lockup svg { display: block; width: clamp(158px, 21vw, 208px); height: auto; }
.nt-hero .hero-badge { margin: 0 0 30px; }
.nt-hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 1.0; margin-bottom: 26px; max-width: 15ch; }
.nt-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #dcdad2; max-width: 60ch; line-height: 1.62; text-wrap: pretty; }

.nt-hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 34px; }
.nt-ghost { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 20px; color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 600; transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease; }
.nt-ghost::after { content: "→"; margin-left: 9px; opacity: 0.65; transition: transform 0.2s ease; }
.nt-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.nt-ghost:hover::after { transform: translateX(3px); }
.nt-ghost:active { transform: translateY(0) scale(0.97); }
.nt-hero-cta .gtag { margin-left: 2px; }

/* Engine drop-in strip */
.nt-engines { margin-top: 50px; }
.nt-engines-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 16px; }
.nt-engine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 960px; }
.nt-engine { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; background: rgba(10, 10, 12, 0.5); padding: 16px 16px 17px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.nt-engine:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.24); background: rgba(16, 16, 19, 0.62); }
/* Engine cards link to their onboarding guide. */
a.nt-engine { text-decoration: none; color: inherit; cursor: pointer; }
a.nt-engine::after { content: "\2192"; position: absolute; bottom: 13px; right: 15px; font-size: 14px; color: var(--faint); opacity: 0.5; transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease; }
a.nt-engine:hover::after { opacity: 1; color: var(--accent); transform: translateX(2px); }
.nt-engine-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); margin-bottom: 15px; transition: color 0.2s ease, border-color 0.2s ease; }
.nt-engine-mark svg { width: 23px; height: 23px; display: block; }
.nt-engine-logo { width: auto; height: 23px; display: block; }
.nt-engine:hover .nt-engine-mark { color: var(--accent); border-color: rgba(116, 136, 218, 0.4); }
.nt-engine-text { display: flex; flex-direction: column; gap: 4px; }
.nt-engine-name { font-size: 14.5px; font-weight: 600; color: var(--fg); line-height: 1.15; }
.nt-engine-path { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.nt-engine-status { position: absolute; top: 15px; right: 15px; font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.nt-engine-status.is-live { color: #cfe8d8; border-color: rgba(93, 202, 150, 0.45); }
.nt-engine-status.is-live::before { content: "\2022"; margin-right: 4px; color: #5dca96; }
.nt-engine-status.is-ready { color: #b9c4ef; border-color: rgba(116, 136, 218, 0.45); }

/* Proof stat band */
.nt-statband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; margin-top: 48px; max-width: 960px; border-top: 1px solid var(--line); padding-top: 28px; }
.nt-stat b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.02em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.nt-stat span { display: block; margin-top: 11px; font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 32ch; }
.nt-pricing { margin-top: 26px; font-size: 14px; color: #dcdad2; line-height: 1.55; max-width: 60ch; padding-left: 15px; border-left: 2px solid var(--accent); }
/* Ease claim (three genres, zero netcode): stacked above the efficiency statband, same hairline idiom. */
.nt-claim { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; max-width: 960px; }
.nt-claim-head { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.45; color: #dcdad2; max-width: 52ch; }
.nt-claim-head b { color: #fff; font-weight: 600; }
.nt-claim-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
/* Measured load proof (beat-2 harness): ratios lead, absolute is the additive foot. */
.nt-measure { margin-top: 46px; }
.nt-measure-label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.nt-statband--measure { grid-template-columns: repeat(2, 1fr); margin-top: 20px; max-width: 780px; }
.nt-pricing--measure { color: var(--muted); }
.nt-pricing--measure b { color: #fff; font-weight: 600; }

/* ---------- Sections ---------- */
.nt-section { padding: clamp(72px, 9vw, 120px) clamp(22px, 5vw, 64px) 0; }
.nt-section--last { padding-bottom: clamp(60px, 7vw, 90px); }
.nt-section .lede + .lede { margin-top: 18px; }
.nt-section .lede sub { font-size: 0.72em; color: var(--accent); }

/* ---------- Live instrument (hero scope + cadence dials) ---------- */
.scope { margin-top: 54px; max-width: 820px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 10, 12, 0.55); padding: 20px 22px 16px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.scope-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.scope-title { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); font-weight: 600; }
.scope-counters { display: flex; gap: 22px; }
.scope-count { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.scope-count b { font-family: var(--mono); font-size: 14px; letter-spacing: 0; color: var(--accent); margin-left: 8px; font-variant-numeric: tabular-nums; }
.scope-count:first-child b { color: #9c9a92; }

.scope-lane { display: grid; grid-template-columns: 148px 1fr; gap: 0 18px; align-items: center; padding: 7px 0; }
.scope-lane--dial { grid-template-columns: 148px 1fr 64px; }
.scope-lane + .scope-lane { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.scope-lab-name { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); font-weight: 600; }
.scope-lab-sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; line-height: 1.4; }
.scope-lab-sub sub { font-size: 0.75em; }
.scope-plot { min-width: 0; }
.scope-plot svg { display: block; width: 100%; }

.sc-tick { stroke: rgba(243, 241, 234, 0.14); stroke-width: 1.5; transition: stroke 0.3s ease; }
.sc-tick.lit { stroke: rgba(243, 241, 234, 0.45); }
.sc-vth { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; stroke-dasharray: 5 5; }
.sc-in { stroke: rgba(243, 241, 234, 0.35); stroke-width: 1.5; }
.sc-base { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.sc-curve { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.sc-area { fill: rgba(116, 136, 218, 0.09); stroke: none; }
.sc-spike { stroke: rgba(116, 136, 218, 0.22); stroke-width: 2; transition: stroke 0.25s ease, filter 0.25s ease; }
.sc-spike.lit { stroke: #9fb0ea; filter: drop-shadow(0 0 3px rgba(116, 136, 218, 0.8)); }
.sc-ph { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }

.scope-ruler { margin-top: 10px; padding-top: 6px; }
.scope-ruler-ticks { height: 6px; margin-left: 166px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 5%); }
.scope-ruler-labels { display: flex; justify-content: space-between; margin-left: 166px; padding-top: 5px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.scope-caption { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 72ch; line-height: 1.55; }

.scope--cadence { padding-top: 14px; }
.scope-dialcell { display: flex; justify-content: flex-end; }
.sc-dial { width: 56px; height: 56px; }
.sc-dial-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.sc-dial-seg { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.sc-dial-needle { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; transform-origin: 28px 28px; transition: transform 0.12s cubic-bezier(0.3, 0, 0.2, 1); }
.sc-dial-hub { fill: var(--accent); }

/* ---------- Formula ---------- */
.nt-formula { margin: 46px 0 0; font-size: clamp(1.45rem, 3.4vw, 2.4rem); font-weight: 500; letter-spacing: -0.01em; color: #fff; text-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.nt-formula var { font-style: italic; }
.nt-formula sub, .nt-formula sup { font-size: 52%; }
.nt-formula .inj { color: var(--accent); }
.nt-formula-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; max-width: 940px; }
.nt-note { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.nt-note b { display: block; color: var(--fg); font-weight: 600; font-size: 14px; margin-bottom: 6px; }

/* ---------- Code ---------- */
.nt-code { margin-top: 42px; max-width: 760px; background: rgba(10, 10, 12, 0.55); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; overflow-x: auto; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nt-code--slim { margin-top: 26px; max-width: 560px; }
.nt-code pre { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d8d6ce; }
.nt-code .c { color: var(--faint); font-style: italic; }
.nt-code .k { color: #a9b7e8; }
.nt-code-caption { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 72ch; line-height: 1.6; }

/* ---------- Struct table ---------- */
.nt-table-wrap { margin-top: 42px; overflow-x: auto; }
.nt-table { width: 100%; max-width: 820px; border-collapse: collapse; font-size: 14px; }
.nt-table th { text-align: left; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; padding: 0 20px 12px 0; border-bottom: 1px solid var(--line); }
.nt-table th.b, .nt-table td.b { text-align: right; padding-right: 28px; }
.nt-table td { padding: 11px 20px 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--muted); vertical-align: top; line-height: 1.45; }
.nt-table td.f { font-family: var(--mono); font-size: 13px; color: var(--fg); white-space: nowrap; }
.nt-table td.b { font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.nt-table td sub { font-size: 0.75em; }

.nt-callout { margin-top: 32px; border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; max-width: 66ch; color: #dcdad2; font-size: 15.5px; line-height: 1.62; }

.nt-h3 { margin-top: 60px; margin-bottom: 14px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.015em; }

/* ---------- Packet lifetime steps ---------- */
.nt-steps { margin-top: 40px; max-width: 720px; list-style: none; counter-reset: step; }
.nt-steps li { position: relative; padding: 16px 0 16px 58px; border-top: 1px solid var(--line); counter-increment: step; color: #c9c7bf; font-size: 15px; line-height: 1.6; }
.nt-steps li:last-child { border-bottom: 1px solid var(--line); }
.nt-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); font-weight: 500; }
.nt-steps em { color: #fff; font-style: normal; font-weight: 500; }
.nt-steps + .lede { margin-top: 30px; }

/* ---------- Engine boundary cards ---------- */
.nt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; max-width: 880px; }
.nt-grid .card-body code { font-size: 0.85em; }

/* ---------- Status ledger ---------- */
.nt-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; max-width: 880px; }
.nt-ledger ul { list-style: none; }
.nt-ledger li { position: relative; padding: 8px 0 8px 22px; color: #c5c3ba; font-size: 14.5px; line-height: 1.5; }
.nt-ledger li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; }
.nt-col--live li::before { background: #5dca96; }
.nt-col--todo li::before { background: transparent; border: 1px solid var(--faint); }
.nt-col--todo .col-label { color: var(--muted); }
.nt-col--live .col-label { color: var(--fg); }

/* ---------- Final CTA + footer ---------- */
.nt-cta-final { margin-top: clamp(60px, 8vw, 96px); border-top: 1px solid var(--line); padding-top: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }
.nt-cta-copy { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.25; color: #fff; max-width: 24ch; text-wrap: balance; }
.nt-cta-actions { display: flex; align-items: center; gap: 22px; }
.nt-btn { display: inline-block; background: #f3f1ea; color: #0a0b0d; border-radius: 10px; padding: 13px 24px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform 0.16s ease, opacity 0.2s ease; }
.nt-btn:hover { transform: translateY(-2px); }
.nt-btn:active { transform: translateY(0) scale(0.97); }
.nt-mail { color: var(--muted); text-decoration: none; font-size: 14px; }
.nt-mail:hover { color: var(--fg); }
.nt-footer { padding: clamp(48px, 6vw, 72px) clamp(22px, 5vw, 64px) 30px; }

/* ---------- Demos page ---------- */
.demo-tag { margin-top: 12px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #b7b5ac; line-height: 1.5; max-width: 58ch; font-style: italic; }
.demo-tag em { font-style: normal; color: var(--accent); font-weight: 600; }
.demo-jump { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }
.demo-jump a { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.01em; }
.demo-jump a::before { content: "\2192\00a0"; color: var(--faint); }
.demo-jump a:hover { color: var(--fg); }
.nt-callout b { color: #fff; font-weight: 600; }
.nt-table td.m { color: #e8e6de; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nt-engine-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nt-formula-notes { grid-template-columns: 1fr; gap: 16px; }
  .nt-ledger { grid-template-columns: 1fr; }
  .nt-statband { grid-template-columns: 1fr; gap: 22px; }
  .nt-stat { display: flex; align-items: baseline; gap: 16px; }
  .nt-stat b { flex: 0 0 auto; }
  .nt-stat span { margin-top: 0; max-width: none; }
  .nt-steps li { padding-left: 44px; }
  .nt-cta-final { flex-direction: column; align-items: flex-start; }
  .scope { padding: 16px 16px 14px; }
  .scope-lane { grid-template-columns: 1fr; gap: 6px 0; padding: 10px 0; }
  .scope-lane--dial { grid-template-columns: 1fr 48px; }
  .scope-lane--dial .scope-lab { grid-column: 1 / -1; }
  .scope-ruler-ticks, .scope-ruler-labels { margin-left: 0; }
  .sc-dial { width: 44px; height: 44px; }
}
@media (max-width: 520px) {
  .nt-engine-grid { grid-template-columns: 1fr; }
}
