/*
  ============================================================
  NUVISTAR — SHARED LAYOUT & COMPONENTS
  Common nav, footer, typography, and reusable blocks.
  ============================================================
*/

/* ── Layout ──────────────────────────────────────────────── */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

/* ── Typography ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.eyebrow .pulse,
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1.07;
  color: var(--ink);
  letter-spacing: -1.2px;
  margin-bottom: 14px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.page-hero .hero-sub {
  max-width: 560px;
  margin: 0 auto 28px;
}

.sect-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}

h2.sect {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.sect-sub {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary,
.btn-ink {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  border: none;
}

.btn-primary:hover,
.btn-ink:hover {
  background: var(--accent);
}

.btn-ghost {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-white {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

/* ── Nav ───────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 0;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo img {
  height: 90px;
  width: 90px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ── Feature blocks (features + reports) ─────────────────── */
.feat-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.feat-block:last-of-type {
  border-bottom: none;
}

.feat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feat-split.rev > :first-child { order: 2; }
.feat-split.rev > :last-child { order: 1; }

h2.feat-h {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}

.feat-body {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 22px;
}

.feat-bullets {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.fb {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.55;
}

.fb-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.fb-dot i {
  font-size: 12px;
  color: var(--teal-txt);
}

/* ── Mock cards ──────────────────────────────────────────── */
.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.mock-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-bar-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-body {
  padding: 14px 16px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
}

.badge-teal  { background: var(--teal-dim);  color: var(--teal-txt); }
.badge-blue  { background: var(--accent-dim); color: var(--accent-txt); }
.badge-amber { background: var(--amber-dim); color: var(--amber-txt); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 14px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.stat-delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--teal);
  margin-top: 2px;
}

.lane-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 4px;
}

.lane-row:last-child { margin-bottom: 0; }

.lane-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-light);
  min-width: 60px;
}

.lane-label {
  font-size: 12px;
  color: var(--ink-mid);
  flex: 1;
}

.lane-bar-wrap {
  width: 72px;
  height: 4px;
  background: rgba(12, 26, 46, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.lane-bar {
  height: 100%;
  border-radius: 2px;
}

.lane-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-light);
  min-width: 28px;
  text-align: right;
}

/* ── Terminal (index + ai) ───────────────────────────────── */
.terminal {
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.term-bar {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.term-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 4px;
  letter-spacing: 0.06em;
}

.term-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tl {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
}

.tp { color: rgba(255, 255, 255, 0.28); }
.tc { color: #7dd3fc; }
.to { color: rgba(255, 255, 255, 0.65); }
.tg { color: #86efac; }
.tw { color: #fcd34d; }
.tr { color: #fca5a5; }

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #7dd3fc;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  margin-top: 64px;
  background: var(--ink);
  border-radius: 18px;
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.cta-band p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 26px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-link-cols {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  flex: 0 1 340px;
  max-width: 340px;
}

.footer-logo img {
  height: 90px;
  width: 90px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--ink-light);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  font-size: 12px;
  color: var(--ink-light);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  nav { flex-wrap: wrap; }
  .nav-logo { order: 1; }
  .nav-right { order: 2; }
  .nav-toggle { display: flex; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a.active {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .feat-split { grid-template-columns: 1fr; }
  .feat-split.rev > :first-child { order: 1; }
  .feat-split.rev > :last-child { order: 2; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid {
    flex-direction: column;
    gap: 28px;
  }
  .footer-link-cols {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .page { padding: 0 24px 80px; }
  .nav-logo img {
    height: 56px;
    width: 56px;
  }
  .nav-cta {
    font-size: 12px;
    padding: 7px 14px;
  }
}
