/* ─────────────────────────────────────────────────────────────────────
   markview.kuberscan.com - landing + guidelines
   Palette mirrors kuberscan.com (Anthropic-docs-inspired warm cream
   with a coral accent). Static site, no framework.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-soft: #f3f1ec;
  --text: #181818;
  --text-soft: #2d2d2d;
  --text-muted: #6e6e6e;
  --text-faint: #8a8a8a;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --accent: #cc785c;
  --accent-hover: #b6664a;
  --accent-soft: rgba(204, 120, 92, 0.12);
  --code-bg: #f3f1ec;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --content-width: 760px;
  --wide-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont,
               'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.12s ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: var(--content-width); }

main { flex: 1 0 auto; }

/* ── Top nav ───────────────────────────────────────────────────────── */

.nav {
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }
.nav-brand .dot { color: var(--accent); }
.nav-brand .tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}

.nav-links a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text-soft);
  padding: 4px 8px;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
    min-width: 180px;
  }
  .nav-links.is-open { display: flex; }
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-soft); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-soft); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin-bottom: 18px;
  color: var(--text);
}

.hero h1 .accent { color: var(--accent); }

.hero p.subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* Install row: terminal command + secondary CTA */
.install-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
}

.terminal {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f1f1f;
  color: #f5f1ea;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  border: 1px solid #2a2a2a;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.terminal .prompt {
  color: #cc785c;
  user-select: none;
  flex-shrink: 0;
}

.terminal code {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.terminal code::-webkit-scrollbar { height: 4px; }
.terminal code::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

.terminal .copy-btn {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #c8c4bc;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.terminal .copy-btn:hover { background: #2a2a2a; border-color: #4a4a4a; color: #fff; }
.terminal .copy-btn.is-copied { color: #8ed18b; border-color: #2c7a3a; }
.terminal .copy-btn svg { width: 14px; height: 14px; }

.install-or {
  align-self: center;
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.install-row .btn-secondary {
  align-self: stretch;
  padding: 12px 22px;
}

.hero-meta {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-faint);
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .sep { color: var(--border-strong); }

/* ── Carousel ──────────────────────────────────────────────────────── */

.shots {
  padding: 24px 0 72px;
}

.shots-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.shots-track {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
}

.shots-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.shots-slide.is-active { opacity: 1; }

.shots-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.shots-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  pointer-events: none;
}

.shots-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
  z-index: 2;
}
.shots-nav:hover { background: rgba(20,20,20,0.78); }
.shots-nav:active { transform: translateY(-50%) scale(0.95); }
.shots-nav svg { width: 18px; height: 18px; }
.shots-nav.prev { left: 14px; }
.shots-nav.next { right: 14px; }

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}
.shots-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.shots-dot.is-active { background: var(--accent); transform: scale(1.15); }

/* ── Section primitives ────────────────────────────────────────────── */

section { padding: 64px 0; }

section.surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Feature cards (What's new) ────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-card .icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-new {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.5;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Visit more (Sublime-family equivalent) ────────────────────────── */

.visit {
  text-align: center;
}
.visit h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.visit p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 auto 26px;
  max-width: 540px;
}

/* ── Footer ────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 64px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 600;
}

footer .footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

footer .footer-links a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
footer .footer-links a:hover { color: var(--text); text-decoration: none; }
footer .footer-links svg { width: 18px; height: 18px; }

/* ── Prose (for guidelines page) ───────────────────────────────────── */

.prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text);
  letter-spacing: -0.4px;
  margin: 2.2em 0 0.6em;
  line-height: 1.25;
  scroll-margin-top: 80px;
}
.prose h1 { font-size: 2em; margin-top: 0; }
.prose h2 {
  font-size: 1.55em;
  padding-top: 0.5em;
  border-top: 1px solid var(--border);
}
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1.02em; color: var(--text-soft); }

.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table {
  margin-bottom: 1.1em;
}

.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.3em; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.6em 1em;
  color: var(--text-muted);
  background: var(--surface-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color: var(--text);
}

.prose pre {
  background: #1f1f1f;
  color: #f5f1ea;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13.5px;
}
.prose pre code { background: none; padding: 0; color: inherit; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.prose th, .prose td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.prose th { background: var(--surface-soft); font-weight: 600; }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ── Docs layout (guidelines page) ─────────────────────────────────── */

.docs {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0 64px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  font-size: 14px;
}

.docs-sidebar h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.docs-sidebar ul { list-style: none; padding: 0; }
.docs-sidebar li { margin-bottom: 2px; }

.docs-sidebar a {
  display: block;
  color: var(--text-soft);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.docs-sidebar a:hover {
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}
.docs-sidebar a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.docs-main {
  min-width: 0;
}

@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }
  .docs-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .docs-sidebar a { border-left: none; }
}

/* ── Misc utilities ────────────────────────────────────────────────── */

.kbd {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-soft);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1f1f1f;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
