/* ──────────────────────────────────────────────────────────────────
   Quill — Marketing site styles
   Built on the Neon Design System tokens (loaded via _ds/*.css)
   ────────────────────────────────────────────────────────────────── */

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

:root {
  --shell: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html { scroll-behavior: smooth; }

body.neon-app {
  background: var(--surface-background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--brand-muted); color: #fff; }

/* ── Layout helpers ──────────────────────────────────────────────── */
.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.divider-top { border-top: 1px solid var(--stroke-hairline); }

/* ── Typography atoms ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1;
}
.eyebrow--brand { color: var(--brand-primary); }

.eyebrow-dot {
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 0 var(--brand-muted);
  animation: livedot 2.4s var(--ease) infinite;
}
@keyframes livedot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,171,115,0.45); }
  60% { box-shadow: 0 0 0 7px rgba(46,171,115,0); }
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--text-primary);
  text-wrap: balance;
}
.display em, .display .it { font-style: italic; color: var(--brand-primary); }

h1.display { font-size: clamp(42px, 6.4vw, 80px); }
h2.display { font-size: clamp(30px, 4.4vw, 52px); }
h3.display { font-size: clamp(22px, 2.6vw, 30px); }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 46ch;
  text-wrap: pretty;
}

.muted { color: var(--text-secondary); }
.tertiary { color: var(--text-tertiary); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              transform var(--duration-instant) var(--ease),
              box-shadow var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--brand-primary); color: #fff;
  box-shadow: 0 6px 20px rgba(46,171,115,0.28);
}
.btn-primary:hover { background: var(--brand-bright); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(46,171,115,0.4); }
.btn-primary:active { background: var(--neon-700); transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border-color: var(--stroke-default);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--stroke-strong); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: var(--radius-md); }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(26,26,24,0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--stroke-hairline);
}
.nav-inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--pad);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-lockup img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--stroke-hairline); }
.wordmark {
  font-family: var(--font-display); font-style: italic;
  font-size: 23px; letter-spacing: -0.01em; color: var(--text-primary);
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; padding: 8px 13px; border-radius: var(--radius-md);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-link[aria-current="page"] { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-menu-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ── Pills / chips ───────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px solid var(--stroke-hairline);
  border-radius: var(--radius-full);
  padding: 6px 13px;
}
.pill svg { width: 13px; height: 13px; color: var(--brand-primary); }
.pill--brand { color: var(--brand-bright); border-color: var(--stroke-brand); background: var(--brand-faint); }

.kbd {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px solid var(--stroke-default);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  padding: 2px 7px; line-height: 1;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--stroke-hairline);
  border-radius: var(--radius-xl);
  padding: 26px;
  transition: border-color var(--duration-normal) var(--ease),
              background var(--duration-normal) var(--ease),
              transform var(--duration-normal) var(--ease);
}
.card--hover:hover { border-color: var(--stroke-brand); background: rgba(46,171,115,0.045); transform: translateY(-3px); }
.card--elevated { background: var(--surface-elevated); border-radius: var(--radius-2xl); padding: 30px; }

.icon-tile {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  background: var(--brand-faint); border: 1px solid var(--brand-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-bright);
  margin-bottom: 20px;
}
.icon-tile svg { width: 21px; height: 21px; }

.card-title {
  font-family: var(--font-display); font-size: 21px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--text-primary); margin-bottom: 9px;
}
.card-body { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }

/* ── Eyebrow + display section header block ──────────────────────── */
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lede { margin-top: 20px; }

/* ── Grid utilities ──────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Waveform motif ──────────────────────────────────────────────── */
.waveform { display: inline-flex; align-items: center; gap: 3px; height: 26px; }
.waveform i {
  width: 3px; border-radius: 9999px; background: var(--brand-primary);
  animation: wave 1.3s var(--ease) infinite; opacity: 0.85;
}
@keyframes wave {
  0%, 100% { height: 6px; } 25% { height: 20px; } 50% { height: 11px; } 75% { height: 24px; }
}

/* ── App window mock (macOS) ─────────────────────────────────────── */
.win {
  border-radius: var(--radius-2xl);
  background: #161614;
  border: 1px solid var(--stroke-hairline);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.win-bar {
  height: 38px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--stroke-hairline);
}
.traffic { display: flex; gap: 8px; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; }
.traffic span:nth-child(1) { background: #FF5F57; }
.traffic span:nth-child(2) { background: #FEBC2E; }
.traffic span:nth-child(3) { background: #28C840; }
.win-title { font-size: 12px; color: var(--text-tertiary); font-weight: 500; margin-left: 6px; }

.win-body { display: grid; grid-template-columns: 240px 1fr; min-height: 380px; }
.win-side {
  background: rgba(0,0,0,0.18);
  border-right: 1px solid var(--stroke-hairline);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.win-side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.win-side-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.win-side-brand .dot { width: 16px; height: 16px; border-radius: 4px; background: var(--brand-primary); display:flex; align-items:center; justify-content:center; }
.win-side-brand .dot svg { width: 10px; height: 10px; color: #fff; }
.side-search {
  font-size: 12px; color: var(--text-tertiary);
  background: var(--surface-input); border: 1px solid var(--stroke-hairline);
  border-radius: var(--radius-md); padding: 7px 10px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.side-group { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quaternary); padding: 10px 6px 6px; }
.side-row { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: var(--radius-md); }
.side-row.active { background: rgba(255,255,255,0.05); }
.side-row .mic { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-elevated); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); flex: 0 0 auto; }
.side-row .mic svg { width: 13px; height: 13px; }
.side-row .meta { min-width: 0; }
.side-row .meta b { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-row .meta span { font-size: 11px; color: var(--text-tertiary); }
.win-main { padding: 26px; }

@media (max-width: 720px) {
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
}

/* ── Status capsule ──────────────────────────────────────────────── */
.status-cap {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--brand-bright);
  background: var(--brand-faint); border: 1px solid var(--stroke-brand);
  border-radius: var(--radius-full); padding: 5px 12px;
}
.status-cap .live { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-primary); animation: livedot 2s var(--ease) infinite; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--stroke-hairline); padding: 56px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 48px;
}
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); text-decoration: none; padding: 5px 0; transition: color var(--duration-fast); }
.footer-col a:hover { color: var(--text-primary); }
.footer-blurb { font-size: 14px; color: var(--text-tertiary); max-width: 30ch; margin-top: 14px; line-height: 1.6; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; border-top: 1px solid var(--stroke-hairline);
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--text-quaternary); letter-spacing: 0.03em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Reveal on scroll ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: var(--rd, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--scale { transform: scale(0.95); }
.reveal--blur { filter: blur(8px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease); }
.reveal--blur.in { filter: none; }

/* ── Scroll progress bar (injected by motion.js) ─────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 400; background: linear-gradient(90deg, var(--brand-primary), var(--brand-bright)); box-shadow: 0 0 14px var(--brand-muted); transition: width 90ms linear; }

/* ── Spotlight that follows the cursor (on .spotlight blocks) ─────── */
.spotlight { --mx: 50%; --my: 28%; }
.spotlight::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(460px circle at var(--mx) var(--my), var(--brand-faint), transparent 58%); opacity: 0.7; transition: opacity var(--duration-slow) var(--ease); }
.spotlight > * { position: relative; z-index: 1; }

/* ── Cursor-follow glow on cards ─────────────────────────────────── */
.glow { position: relative; }
.glow::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), var(--brand-faint), transparent 62%);
  opacity: 0; transition: opacity var(--duration-normal) var(--ease); z-index: 0; }
.glow:hover::before { opacity: 1; }
.glow > * { position: relative; z-index: 1; }

/* ── Animated gradient hairline (premium card edge) ──────────────── */
.edge-lit { position: relative; }
.edge-lit::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, transparent 20%, var(--stroke-brand) 50%, transparent 80%);
  background-size: 220% 220%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--duration-normal) var(--ease); animation: edgeflow 5s linear infinite; }
.edge-lit:hover::after { opacity: 1; }
@keyframes edgeflow { to { background-position: 220% 0; } }

/* ── Button sheen ────────────────────────────────────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent); transform: skewX(-18deg); }
.btn-primary:hover::after { animation: sheen 0.75s var(--ease); }
@keyframes sheen { to { left: 170%; } }
.btn svg { transition: transform var(--duration-fast) var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }

/* ── Shimmering accent text ──────────────────────────────────────── */
.shimmer { background: linear-gradient(100deg, var(--brand-primary) 28%, var(--brand-bright) 50%, var(--brand-primary) 72%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ── Breathing hero glow helper ──────────────────────────────────── */
@keyframes breathe { 0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.1); } }

/* ── Marquee strip ───────────────────────────────────────────────── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(28px, 5vw, 56px); width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Count-up figures ────────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stroke-hairline); border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--stroke-hairline); }
.metric { background: var(--surface-background); padding: 30px 24px; text-align: center; transition: background var(--duration-normal) var(--ease); }
.metric:hover { background: rgba(46,171,115,0.04); }
.metric .num { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); color: var(--brand-primary); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 12px; }
@media (max-width: 760px) { .metrics { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .waveform i, .eyebrow-dot::before, .status-cap .live,
  .shimmer, .marquee-track, .edge-lit::after, .btn-primary:hover::after { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ── 3D tilt card + glare (Aceternity-style, on-brand) ───────────── */
.tilt { transition: transform var(--duration-normal) var(--ease), border-color var(--duration-normal) var(--ease); transform-style: preserve-3d; will-change: transform; }
.tilt:hover { border-color: var(--stroke-brand); }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.16), transparent 60%);
  transition: opacity var(--duration-normal) var(--ease); }
.tilt:hover .tilt-glare { opacity: 1; }

/* ── Lamp effect (glowing line + halo above a heading) ───────────── */
.lamp { position: relative; isolation: isolate; }
.lamp::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: -1;
  width: min(680px, 86%); height: 240px; pointer-events: none;
  background: radial-gradient(ellipse 56% 100% at 50% 0%, var(--brand-muted), transparent 72%); filter: blur(6px); }
.lamp::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(var(--lamp, 0));
  width: min(440px, 64%); height: 2px; transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--brand-bright), transparent);
  box-shadow: 0 0 26px 3px var(--brand-muted); transition: transform 1s var(--ease); }
.lamp.in::after { --lamp: 1; }

/* ── Hover border gradient (rotating conic ring) ─────────────────── */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glint { position: relative; isolation: isolate; }
.glint::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0%, var(--brand-bright) 14%, transparent 32%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ring 4s linear infinite; opacity: 0; transition: opacity var(--duration-normal) var(--ease); }
.glint:hover::before, .glint.always::before { opacity: 1; }
@keyframes spin-ring { to { --ang: 360deg; } }

/* ── Bento grid ──────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .tile { position: relative; overflow: hidden; background: var(--surface-card); border: 1px solid var(--stroke-hairline); border-radius: var(--radius-2xl); padding: 26px; }
.bento .b-lg { grid-column: span 2; grid-row: span 2; }
.bento .b-wide { grid-column: span 3; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .b-lg { grid-column: span 2; grid-row: auto; }
  .bento .b-wide { grid-column: span 2; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
  .bento .b-lg, .bento .b-wide { grid-column: auto; }
}

/* ── Sparkles canvas layer ───────────────────────────────────────── */
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sparkles canvas { width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  .glint::before { animation: none; }
  .tilt { transform: none !important; }
}

/* ── Moderne Plattform-Features (progressive enhancement) ────────── */
:root { interpolate-size: allow-keywords; }

/* Cross-document view transitions (MPA) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 150ms var(--ease, ease) both; }
::view-transition-new(root) { animation: vt-in 240ms var(--ease, ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

:focus-visible { outline: 1.5px solid var(--stroke-brand); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
p, li { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .faq-item::details-content { transition: none; }
}

/* ── Echte App-Screenshots ───────────────────────────────────────── */
.shot-card { margin: 0; }
.shot-card img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid rgba(255,255,255,0.09); box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.4); }
.shot-card figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); text-align: center; }

/* ── ⌘K Nav-Button ───────────────────────────────────────────────── */
.navk { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; margin-right: 10px; border-radius: var(--radius-md); border: 1px solid var(--stroke-hairline); background: rgba(255,255,255,0.03); color: var(--text-tertiary); font-family: var(--font-body); font-size: 12.5px; cursor: pointer; transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease); }
.navk:hover { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.navk svg { width: 13px; height: 13px; flex: 0 0 auto; }
.navk kbd { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); background: rgba(255,255,255,0.06); border: 1px solid var(--stroke-hairline); border-bottom-width: 1.5px; border-radius: 4px; padding: 2px 5px; line-height: 1; }
.navk-keys { display: inline-flex; gap: 3px; }
@media (max-width: 760px) { .navk-label { display: none; } }

/* ── ⌘K Command Palette ──────────────────────────────────────────── */
.pal-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(10,10,9,0.55); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease); }
.pal-overlay.open { opacity: 1; pointer-events: auto; }
.pal { width: min(560px, 100%); background: var(--surface-elevated); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-2xl); box-shadow: 0 30px 80px rgba(0,0,0,0.55); overflow: hidden; transform: translateY(8px) scale(0.985); transition: transform 200ms var(--ease); }
.pal-overlay.open .pal { transform: none; }
.pal-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--stroke-hairline); color: var(--text-tertiary); }
.pal-head svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pal-input { flex: 1; background: transparent; border: 0; outline: 0; font-family: var(--font-body); font-size: 15px; color: var(--text-primary); }
.pal-input::placeholder { color: var(--text-tertiary); }
.pal-esc { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--stroke-hairline); border-radius: 4px; padding: 3px 6px; }
.pal-list { max-height: min(46vh, 380px); overflow-y: auto; padding: 8px; }
.pal-group { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); padding: 12px 10px 6px; }
.pal-item { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 10px; border-radius: var(--radius-md); cursor: pointer; }
.pal-item.sel { background: rgba(255,255,255,0.06); }
.pal-item.sel .pal-go { opacity: 1; transform: none; }
.pal-t { font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.pal-s { flex: 1; font-size: 12px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-go { width: 13px; height: 13px; color: var(--brand-primary); opacity: 0; transform: translateX(-3px); transition: opacity 150ms var(--ease), transform 150ms var(--ease); align-self: center; flex: 0 0 auto; }
.pal-empty { padding: 28px 16px; text-align: center; color: var(--text-tertiary); font-size: 13.5px; }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--stroke-hairline); color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.pal-foot span { display: inline-flex; align-items: center; gap: 5px; }
.pal-foot kbd { font-family: var(--font-mono); font-size: 9px; color: var(--text-secondary); background: rgba(255,255,255,0.06); border: 1px solid var(--stroke-hairline); border-radius: 3px; padding: 1px 4px; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .pal-overlay, .pal, .pal-go { transition: none; } }
