/* ──────────────────────────────────────────────────────────────────
   Vain — site styles
   Motion rules: only transform/opacity/color are animated, one shared
   easing curve, and everything respects prefers-reduced-motion.
   ────────────────────────────────────────────────────────────────── */

:root {
  --primary: #987de5;
  --primary-dark: #7c5fb5;
  --primary-light: #ad91ff;
  --bg: #0a0910;
  --surface: #121019;
  --surface-2: #181523;
  --text: #f2f0f7;
  --text-muted: #9d97ad;
  --text-faint: #6e6880;
  --border: #24202f;
  --border-strong: #383049;
  --success: #4ade80;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 180ms;
  --radius: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(152, 125, 229, 0.35);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Background ─────────────────────────────────────────────────── */
/* Two blurred orbs moved with transform only — compositor-friendly,
   no gradient interpolation (which snaps instead of animating). */

.bg-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  width: 55vw;
  height: 55vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.bg-glow::before {
  background: radial-gradient(circle, rgba(152, 125, 229, 0.14) 0%, transparent 65%);
  top: -12%;
  left: -8%;
  animation: drift-a 26s var(--ease) infinite alternate;
}

.bg-glow::after {
  background: radial-gradient(circle, rgba(124, 95, 181, 0.10) 0%, transparent 65%);
  bottom: -18%;
  right: -10%;
  animation: drift-b 32s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(10vw, 8vh, 0) scale(1.15); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-8vw, -6vh, 0) scale(0.95); }
}

/* ── Scroll progress bar ────────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 2000;
  pointer-events: none;
}

/* ── Navbar ─────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 9, 16, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  padding: 0.9rem 0;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 9, 16, 0.85);
  border-bottom-color: var(--border);
}

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

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: transform var(--dur) var(--ease);
}

.nav-brand a:hover .logo {
  transform: scale(1.06);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-nav:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(152, 125, 229, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(152, 125, 229, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.1rem;
  font-size: 1.05rem;
}

.btn-icon {
  transition: transform var(--dur) var(--ease);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

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

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
  z-index: 1;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(152, 125, 229, 0.08);
  border: 1px solid rgba(152, 125, 229, 0.25);
  color: var(--primary-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.highlight-text {
  color: var(--primary-light);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Staggered entrance — CSS only, no inline styles */
.hero-left > * {
  animation: rise 0.7s var(--ease) both;
}

.hero-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-left > *:nth-child(2) { animation-delay: 0.12s; }
.hero-left > *:nth-child(3) { animation-delay: 0.19s; }
.hero-left > *:nth-child(4) { animation-delay: 0.26s; }

.hero-right {
  animation: rise 0.7s var(--ease) 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clip-frame {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(152, 125, 229, 0.06);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.clip-frame:hover {
  transform: translateY(-6px);
  border-color: rgba(152, 125, 229, 0.4);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(152, 125, 229, 0.12);
}

.clip-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Scrolly showcase (pinned, scroll-scrubbed) ─────────────────── */
/* Tall wrapper + sticky child: scrolling through the wrapper drives
   the typing animation via JS. Transform/opacity only. */

.scrolly {
  height: 320vh;
  position: relative;
  padding: 0;
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scrolly-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  padding: 0 1.5rem;
}

.scrolly-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  will-change: transform, opacity;
}

.type-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 1.1rem 1.6rem;
  min-width: min(600px, 88vw);
  min-height: 4.2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(152, 125, 229, 0.06);
  text-align: left;
}

.type-slash {
  color: var(--primary-light);
  margin-right: 1px;
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--primary-light);
  margin-left: 3px;
  animation: caret-blink 1s steps(2) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.scrolly-caption {
  color: var(--text-muted);
  font-size: 1.05rem;
  min-height: 1.7em;
}

/* ── Command marquee ────────────────────────────────────────────── */

.marquee-band {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-row {
  display: flex;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding-right: 0.75rem;
  animation: marquee 45s linear infinite;
  will-change: transform;
}

.marquee-row.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 55s;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee-chip {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.marquee-chip:hover {
  color: var(--primary-light);
  border-color: rgba(152, 125, 229, 0.45);
}

/* ── Sections ───────────────────────────────────────────────────── */

section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Scroll reveal — class toggled by JS, transition lives here */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Features ───────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.feature-card:hover {
  border-color: rgba(152, 125, 229, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(152, 125, 229, 0.1);
  border: 1px solid rgba(152, 125, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Command categories (home preview) ──────────────────────────── */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.category-tile:hover {
  border-color: rgba(152, 125, 229, 0.45);
  transform: translateY(-3px);
}

.category-tile h4 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.category-tile span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.category-tile .tile-arrow {
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--dur) var(--ease);
}

.category-tile:hover .tile-arrow {
  gap: 0.6rem;
}

.commands-cta {
  text-align: center;
}

/* ── Stats ──────────────────────────────────────────────────────── */

.stats {
  padding: 4rem 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.stat-card:hover {
  border-color: rgba(152, 125, 229, 0.4);
  transform: translateY(-3px);
}

.stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ── CTA ────────────────────────────────────────────────────────── */

.cta {
  padding: 3rem 0 6rem;
}

.cta-inner {
  text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(152, 125, 229, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner > * {
  position: relative;
}

.cta-inner h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-faint);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

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

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Commands page ──────────────────────────────────────────────── */

.commands-page {
  min-height: 100vh;
  padding: 130px 0 5rem;
  position: relative;
  z-index: 1;
}

.commands-page .page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.commands-page .page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.commands-page .page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cmd-toolbar {
  position: sticky;
  top: 76px;
  z-index: 50;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(10, 9, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 2rem;
}

.cmd-search {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cmd-search::placeholder {
  color: var(--text-faint);
}

.cmd-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(152, 125, 229, 0.15);
}

.cmd-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
}

.cmd-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  pointer-events: none;
}

.cmd-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 2.2rem 0.65rem 1rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239d97ad' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  transition: border-color var(--dur) var(--ease);
}

.cmd-filter:focus,
.cmd-filter:hover {
  border-color: var(--primary);
}

.cmd-count {
  color: var(--text-faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Category section on commands page */
.cmd-section {
  margin-bottom: 2.75rem;
}

.cmd-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

.cmd-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cmd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  scroll-margin-top: 160px;
  transition: border-color var(--dur) var(--ease);
}

.cmd-card:hover {
  border-color: var(--border-strong);
}

.cmd-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(152, 125, 229, 0.15);
}

.cmd-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cmd-name {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.cmd-name .slash {
  color: var(--primary-light);
}

.cmd-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.cmd-anchor:hover {
  color: var(--primary-light);
  background: rgba(152, 125, 229, 0.1);
}

.cmd-anchor svg {
  width: 14px;
  height: 14px;
}

.cmd-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

.cmd-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.45rem;
}

.cmd-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.cmd-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cmd-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  min-width: 60px;
}

.cmd-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cmd-chip {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  cursor: default;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.cmd-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.cmd-chip .req {
  color: var(--primary-light);
}

.cmd-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 0;
  display: none;
}

.cmd-empty.show {
  display: block;
}

/* Copied tooltip on anchor click */
.cmd-anchor.copied {
  color: var(--success);
}

/* ── Policy pages ───────────────────────────────────────────────── */

.policy-page {
  min-height: 100vh;
  padding: 130px 0 60px;
  position: relative;
  z-index: 1;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
}

.policy-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* ── Reduced motion ─────────────────────────────────────────────── */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    padding-top: 110px;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-right {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-links {
    gap: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: 3.5rem 0;
  }

  .cmd-toolbar {
    top: 66px;
  }

  .cmd-badge {
    display: none;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
