/*
 * Night Silver: components
 * Built only from tokens.css. Load tokens.css first.
 */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
.nv { margin: 0; background: var(--nv-void); color: var(--nv-silver); font-family: var(--nv-sans); font-size: var(--nv-text-body); line-height: 1.6; letter-spacing: var(--nv-tracking-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(.nv) a { color: inherit; text-decoration: none; }
:where(.nv) img, :where(.nv) svg { display: block; max-width: 100%; }
.nv ::selection { background: var(--nv-halo); color: var(--nv-void); }
.nv-container { width: 100%; max-width: var(--nv-container); margin: 0 auto; padding: 0 var(--nv-gutter); }
.nv-narrow { width: 100%; max-width: var(--nv-narrow); margin: 0 auto; padding: 0 var(--nv-gutter); }
.nv-section { position: relative; padding: var(--nv-section) 0; }
.nv-section--flush { padding-top: 0; }
.nv-section--tight { padding-top: 24px; }
.nv-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--nv-line-bright), transparent); }

/* Type */
.nv-display, .nv-h1, .nv-h2 { margin: 0; font-family: var(--nv-serif); font-weight: var(--nv-weight-regular); letter-spacing: var(--nv-tracking-display); line-height: var(--nv-leading-display); }
.nv-display { font-size: var(--nv-text-display); }
.nv-h1 { font-size: var(--nv-text-h1); }
.nv-h2 { font-size: var(--nv-text-h2); line-height: 1.08; }
.nv-silver { background: var(--nv-silver-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.nv-h3 { margin: 0; font-size: var(--nv-text-h3); font-weight: var(--nv-weight-medium); line-height: 1.3; }
.nv-lead { margin: 0; max-width: 540px; color: var(--nv-mist); font-size: var(--nv-text-lead); line-height: 1.55; }
.nv-muted { color: var(--nv-mist); }
.nv-dim { color: var(--nv-dim); }
.nv-eyebrow { display: inline-block; font-family: var(--nv-mono); font-size: var(--nv-text-micro); color: var(--nv-dim); letter-spacing: .02em; }
.nv-mono { font-family: var(--nv-mono); font-size: var(--nv-text-small); }

/* Buttons */
.nv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--nv-radius); border: 1px solid var(--nv-glass-line); background: var(--nv-glass); color: var(--nv-silver); font: var(--nv-weight-bold) 15px/1 var(--nv-sans); letter-spacing: var(--nv-tracking-sans); white-space: nowrap; box-shadow: var(--nv-shadow-btn); cursor: pointer; transition: background var(--nv-fast) var(--nv-ease), border-color var(--nv-fast) var(--nv-ease); }
.nv-btn:hover { background: var(--nv-glass-hover); border-color: var(--nv-line-bright); }
.nv-btn--light { background: var(--nv-silver); border-color: var(--nv-silver); color: var(--nv-void); box-shadow: 0 0 0 4px rgba(255, 255, 255, .05), 0 10px 30px -10px rgba(175, 194, 255, .35); }
.nv-btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }
.nv-btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--nv-mist); }
.nv-btn--ghost:hover { background: transparent; border-color: transparent; color: var(--nv-silver); }
.nv-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.nv-btn--block { width: 100%; }
.nv-btn svg { width: 14px; height: 14px; }
.nv-link { color: var(--nv-silver); border-bottom: 1px solid var(--nv-line-bright); transition: border-color var(--nv-fast) var(--nv-ease); }
.nv-link:hover { border-color: var(--nv-silver); }

/* Nav */
.nv-nav { position: relative; z-index: 5; }
.nv-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nv-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--nv-serif); font-size: 24px; letter-spacing: -.02em; color: var(--nv-silver); }
.nv-wordmark svg { width: 22px; height: 22px; }
.nv-nav__links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--nv-mist); }
.nv-nav__links a:hover { color: var(--nv-silver); }
.nv-nav__end { display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .nv-nav__links { display: none; } }
@media (max-width: 480px) { .nv-nav__end .nv-btn--ghost { display: none; } }

/* Chip with a gradient ring */
.nv-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--nv-radius-pill); background: var(--nv-ink); font-size: 14px; color: var(--nv-silver); white-space: nowrap; }
.nv-chip::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--nv-ring); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.nv-chip svg { width: 12px; height: 12px; color: var(--nv-mist); }

/* Badges */
.nv-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--nv-radius-pill); border: 1px solid var(--nv-line-bright); font-family: var(--nv-mono); font-size: 11px; color: var(--nv-mist); white-space: nowrap; }
.nv-badge--halo { border-color: rgba(175, 194, 255, .35); color: var(--nv-halo); background: rgba(175, 194, 255, .06); }
.nv-badge--mint { border-color: rgba(159, 227, 207, .35); color: var(--nv-mint); background: rgba(159, 227, 207, .06); }
.nv-badge--dawn { border-color: rgba(233, 185, 138, .35); color: var(--nv-dawn); background: rgba(233, 185, 138, .06); }
.nv-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* Light: beams and glows. Put .nv-lit on any positioned section, then add beams inside */
.nv-lit { position: relative; isolation: isolate; overflow: clip; }
.nv-beam { position: absolute; z-index: -1; width: 160%; height: 220px; left: -30%; background: var(--nv-beam); filter: blur(28px); transform: rotate(-16deg); pointer-events: none; }
.nv-beam--faint { opacity: .5; height: 140px; }
.nv-beam--steep { transform: rotate(-34deg); }
.nv-glow { position: absolute; z-index: -1; inset: 0; background: var(--nv-glow); pointer-events: none; }
.nv-lit::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 140px; background: var(--nv-fade-down); pointer-events: none; }

/* Hero */
.nv-hero { padding: clamp(72px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); }
.nv-hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 760px; }
.nv-hero__body--center { align-items: center; text-align: center; margin: 0 auto; }
.nv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Window: a drawn app surface */
.nv-window { position: relative; border-radius: var(--nv-radius-lg); border: var(--nv-border); background: linear-gradient(180deg, var(--nv-raise), var(--nv-ink) 40%); box-shadow: var(--nv-shadow); overflow: hidden; }
.nv-window__bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: var(--nv-border); font-family: var(--nv-mono); font-size: var(--nv-text-micro); color: var(--nv-dim); }
.nv-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--nv-line-bright); }
.nv-window__bar span { margin-left: 10px; }
.nv-window__body { padding: 20px; }
.nv-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; }
.nv-rows li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--nv-radius-sm); font-size: var(--nv-text-small); color: var(--nv-mist); }
.nv-rows li:hover, .nv-rows li.is-on { background: var(--nv-glass); color: var(--nv-silver); }
.nv-rows li > span:not([class]) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-rows .nv-mono { color: var(--nv-dim); font-size: var(--nv-text-micro); }
.nv-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--nv-radius-sm); border: var(--nv-border); background: var(--nv-raise); color: var(--nv-mist); }
.nv-icon svg { width: 14px; height: 14px; }

/* Cards and grids */
.nv-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .nv-grid, .nv-grid--2 { grid-template-columns: 1fr; } }
.nv-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--nv-radius-lg); border: var(--nv-border); background: var(--nv-ink); box-shadow: var(--nv-highlight); }
.nv-card p { margin: 0; color: var(--nv-mist); font-size: 15px; }
.nv-card__art { height: 150px; margin: -8px -8px 8px; border-radius: var(--nv-radius); border: var(--nv-border); background: var(--nv-void); overflow: hidden; position: relative; }
.nv-section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 56px; }
.nv-section-head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* Split */
.nv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .nv-split { grid-template-columns: 1fr; } }

/* Stats */
.nv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--nv-border); border-bottom: var(--nv-border); }
.nv-stat { padding: 32px 24px; border-left: var(--nv-border); }
.nv-stat:first-child { border-left: 0; }
.nv-stat b { display: block; font-family: var(--nv-serif); font-weight: var(--nv-weight-regular); font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: var(--nv-tracking-display); }
.nv-stat span { display: block; margin-top: 10px; color: var(--nv-dim); font-size: var(--nv-text-small); }
@media (max-width: 760px) { .nv-stats { grid-template-columns: 1fr 1fr; } .nv-stat:nth-child(3) { border-left: 0; } .nv-stat:nth-child(n+3) { border-top: var(--nv-border); } }

/* Logos row */
.nv-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; color: var(--nv-dim); font-family: var(--nv-serif); font-size: 22px; letter-spacing: -.01em; }
.nv-logos span:nth-child(even) { font-family: var(--nv-sans); font-weight: var(--nv-weight-bold); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }

/* Quote */
.nv-quote { margin: 0; text-align: center; }
.nv-quote p { margin: 0 auto; max-width: 860px; font-family: var(--nv-serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -.02em; }
.nv-quote footer { margin-top: 28px; color: var(--nv-dim); font-size: var(--nv-text-small); }
.nv-quote footer b { color: var(--nv-silver); font-weight: var(--nv-weight-medium); }

/* Steps */
.nv-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: nv-step; }
.nv-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: var(--nv-border); counter-increment: nv-step; }
.nv-steps li::before { content: "0" counter(nv-step); font-family: var(--nv-mono); font-size: var(--nv-text-micro); color: var(--nv-dim); padding-top: 4px; }
.nv-steps b { display: block; font-weight: var(--nv-weight-medium); margin-bottom: 4px; }
.nv-steps span { color: var(--nv-mist); font-size: 15px; }

/* Pricing */
.nv-toggle { display: inline-flex; padding: 4px; border-radius: var(--nv-radius-pill); border: var(--nv-border); background: var(--nv-ink); }
.nv-toggle button { height: 34px; padding: 0 16px; border: 0; border-radius: var(--nv-radius-pill); background: transparent; color: var(--nv-mist); font: var(--nv-weight-medium) 14px/1 var(--nv-sans); cursor: pointer; white-space: nowrap; }
.nv-toggle button.is-on { background: var(--nv-glass-hover); color: var(--nv-silver); box-shadow: var(--nv-highlight); }
.nv-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .nv-plans { grid-template-columns: 1fr; } }
.nv-plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px 28px; border-radius: var(--nv-radius-lg); border: var(--nv-border); background: var(--nv-ink); box-shadow: var(--nv-highlight); }
.nv-plan--featured { background: linear-gradient(180deg, var(--nv-raise), var(--nv-ink) 60%); border-color: var(--nv-line-bright); }
.nv-plan--featured::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: var(--nv-ring); }
.nv-plan__price { display: flex; align-items: baseline; gap: 6px; }
.nv-plan__price b { font-family: var(--nv-serif); font-weight: var(--nv-weight-regular); font-size: 56px; line-height: 1; letter-spacing: var(--nv-tracking-display); }
.nv-plan__price span { color: var(--nv-dim); font-size: var(--nv-text-small); }
.nv-plan > p { margin: 0; color: var(--nv-mist); font-size: 15px; }
.nv-checks { display: grid; gap: 10px; margin: 0; padding: 20px 0 0; list-style: none; border-top: var(--nv-border); font-size: 15px; color: var(--nv-mist); }
.nv-checks li { display: flex; gap: 10px; }
.nv-checks li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; border: 1px solid var(--nv-line-bright); background: radial-gradient(circle, var(--nv-silver) 0 2px, transparent 2.5px); }
.nv-plan .nv-btn { margin-top: auto; }
.nv-table-wrap { overflow-x: auto; border-radius: var(--nv-radius-lg); border: var(--nv-border); }
.nv-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.nv-table th, .nv-table td { padding: 16px 20px; text-align: left; border-bottom: var(--nv-border); }
.nv-table thead th { font-family: var(--nv-mono); font-size: var(--nv-text-micro); font-weight: var(--nv-weight-regular); color: var(--nv-dim); background: var(--nv-ink); }
.nv-table tbody th { font-weight: var(--nv-weight-regular); color: var(--nv-mist); }
.nv-table tr:last-child td, .nv-table tr:last-child th { border-bottom: 0; }
.nv-faq { border-top: var(--nv-border); }
.nv-faq details { border-bottom: var(--nv-border); }
.nv-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: var(--nv-weight-medium); }
.nv-faq summary::-webkit-details-marker { display: none; }
.nv-faq summary::after { content: "+"; color: var(--nv-dim); font-family: var(--nv-mono); }
.nv-faq details[open] summary::after { content: "-"; }
.nv-faq p { margin: 0 0 22px; color: var(--nv-mist); max-width: 620px; }

/* Article */
.nv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--nv-dim); font-size: var(--nv-text-small); }
.nv-author { display: inline-flex; align-items: center; gap: 10px; color: var(--nv-mist); }
.nv-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--nv-line-bright); background: radial-gradient(circle at 35% 30%, var(--nv-halo), var(--nv-raise) 70%); }
.nv-article { font-size: 18px; line-height: 1.75; color: var(--nv-mist); }
.nv-article > * { margin: 0 0 24px; }
.nv-article h2 { margin-top: 56px; font-family: var(--nv-serif); font-weight: var(--nv-weight-regular); font-size: 34px; line-height: 1.15; letter-spacing: -.02em; color: var(--nv-silver); }
.nv-article strong { color: var(--nv-silver); font-weight: var(--nv-weight-medium); }
.nv-article a { color: var(--nv-silver); border-bottom: 1px solid var(--nv-line-bright); }
.nv-article blockquote { margin: 40px 0; padding: 0 0 0 24px; border-left: 1px solid var(--nv-halo); font-family: var(--nv-serif); font-size: 26px; line-height: 1.35; color: var(--nv-silver); }
.nv-article ul { padding-left: 20px; }
.nv-article li { margin-bottom: 8px; }
.nv-article code { font-family: var(--nv-mono); font-size: 15px; padding: 2px 6px; border-radius: 6px; background: var(--nv-raise); border: var(--nv-border); color: var(--nv-silver); }
.nv-figure { margin: 40px 0; }
.nv-figure figcaption { margin-top: 12px; font-family: var(--nv-mono); font-size: var(--nv-text-micro); color: var(--nv-dim); }
.nv-callout { padding: 22px 24px; border-radius: var(--nv-radius); border: var(--nv-border); background: var(--nv-ink); box-shadow: var(--nv-highlight); font-size: 16px; }
.nv-callout b { display: block; margin-bottom: 6px; color: var(--nv-silver); font-weight: var(--nv-weight-medium); }

/* Forms */
.nv-form { display: grid; gap: 18px; }
.nv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .nv-row { grid-template-columns: 1fr; } }
.nv-field { display: grid; gap: 8px; }
.nv-label { font-size: var(--nv-text-small); font-weight: var(--nv-weight-medium); color: var(--nv-silver); }
.nv-input, .nv-select { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--nv-radius); border: 1px solid var(--nv-line-bright); background: var(--nv-ink); color: var(--nv-silver); font: 15px/1 var(--nv-sans); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); transition: border-color var(--nv-fast) var(--nv-ease), box-shadow var(--nv-fast) var(--nv-ease); }
.nv-input::placeholder { color: var(--nv-dim); }
.nv-input:focus, .nv-select:focus { outline: none; border-color: var(--nv-halo); box-shadow: 0 0 0 3px rgba(175, 194, 255, .18); }
.nv-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--nv-mist) 50%), linear-gradient(135deg, var(--nv-mist) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.nv-hint { font-size: 13px; color: var(--nv-dim); }
.nv-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--nv-text-small); color: var(--nv-mist); }
.nv-check input { margin-top: 4px; accent-color: var(--nv-halo); }
.nv-or { display: flex; align-items: center; gap: 14px; color: var(--nv-dim); font-size: 13px; }
.nv-or::before, .nv-or::after { content: ""; flex: 1; height: 1px; background: var(--nv-line); }
.nv-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--nv-radius-lg); border: var(--nv-border); background: rgba(12, 12, 14, .85); box-shadow: var(--nv-shadow); backdrop-filter: blur(12px); }

/* CTA */
.nv-cta { text-align: center; }
.nv-cta .nv-actions { justify-content: center; }

/* Footer */
.nv-footer { padding: 72px 0 40px; border-top: var(--nv-border); color: var(--nv-dim); font-size: var(--nv-text-small); }
.nv-footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.nv-footer__cols ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nv-footer__cols h4 { margin: 0 0 14px; color: var(--nv-silver); font-size: var(--nv-text-small); font-weight: var(--nv-weight-medium); }
.nv-footer__cols a:hover { color: var(--nv-silver); }
.nv-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: var(--nv-border); font-family: var(--nv-mono); font-size: var(--nv-text-micro); }
.nv-footer--slim { padding: 40px 0; }
.nv-footer--slim .nv-footer__base { margin-top: 0; padding-top: 0; border-top: 0; }
.nv-footer__about { max-width: 280px; margin: 16px 0 0; }
@media (max-width: 760px) { .nv-footer__cols { grid-template-columns: 1fr 1fr; } .nv-footer__cols > div:first-child { grid-column: 1 / -1; } }

/* Motion */
.nv-rise { animation: nv-rise var(--nv-slow) var(--nv-ease) both; }
.nv-rise--2 { animation-delay: 120ms; }
.nv-rise--3 { animation-delay: 240ms; }
@keyframes nv-rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .nv-rise { animation: none; } }

/* Drawing classes for inline SVG art (fills, strokes, text) */
.nv-f-void { fill: var(--nv-void); }
.nv-f-raise { fill: var(--nv-raise); }
.nv-f-line { fill: var(--nv-line-bright); }
.nv-f-silver { fill: var(--nv-silver); }
.nv-f-halo { fill: var(--nv-halo); }
.nv-f-mint { fill: var(--nv-mint); }
.nv-f-dawn { fill: var(--nv-dawn); }
.nv-f-none { fill: none; }
.nv-s-faint { stroke: var(--nv-line); }
.nv-s-line { stroke: var(--nv-line-bright); }
.nv-s-dim { stroke: var(--nv-dim); }
.nv-s-mist { stroke: var(--nv-mist); }
.nv-s-silver { stroke: var(--nv-silver); }
.nv-t-dim { fill: var(--nv-dim); }
.nv-t-silver { fill: var(--nv-silver); }
.nv-stop-halo { stop-color: var(--nv-halo); }
