/* KittyClaw site — purple kawaii brand on dark */

/* Brand enforcement — wins over stale persisted tweak values. */
:root {
  --accent: #7c5cff !important;
  --accent-soft: rgba(124, 92, 255, 0.14) !important;
  --accent-line: rgba(124, 92, 255, 0.4) !important;
  --bg: #0d0a1a !important;
}

:root {
  --bg: #0d0a1a;
  --bg-elev: #15112a;
  --bg-elev-2: #1d1838;
  --line: #2a2348;
  --line-strong: #3a3160;
  --ink: #f4f1fa;
  --ink-mute: #a8a2c4;
  --ink-dim: #6e6890;
  --accent: #7c5cff;          /* kitty purple */
  --accent-soft: rgba(124, 92, 255, 0.14);
  --accent-line: rgba(124, 92, 255, 0.4);
  --green: #5fd96a;           /* eye green */
  --blue: #4aa8ff;            /* eye blue */
  --yellow: #f4cf6b;
  --red: #ef6b6b;
  --purple: #b89cff;

  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #0a0a0b; }

/* ---------- Layout ---------- */

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

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 16px;
  text-wrap: balance;
}

.h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 640px;
  text-wrap: pretty;
}

.muted { color: var(--ink-mute); }
.dim { color: var(--ink-dim); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #8e72ff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink-mute); background: var(--bg-elev); }

.btn-arrow svg { transition: transform 0.18s ease; }
.btn-arrow:hover svg { transform: translateX(2px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-logo {
  display: block;
  margin: 0 0 28px;
  height: clamp(72px, 9vw, 110px);
  width: auto;
  filter: drop-shadow(0 12px 40px rgba(124,92,255,0.3));
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-mute);
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

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

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  flex-wrap: wrap;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .pip { width: 6px; height: 6px; border-radius: 999px; background: var(--green); }

/* ambient grid */
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.4;
}

/* glow */
.glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.22), transparent 60%);
  top: -240px; right: -120px;
  pointer-events: none;
  filter: blur(20px);
}

.glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,168,255,0.14), transparent 60%);
  bottom: -200px; left: -100px;
  pointer-events: none;
  filter: blur(20px);
}

/* ---------- Kanban demo ---------- */

.kanban {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.03) inset;
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 14px;
  border-bottom: 1px dashed var(--line);
}

.kanban-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.kanban-dots { display: flex; gap: 5px; }
.kanban-dots i {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--line-strong);
  display: block;
}

.kanban-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 6px 6px;
  overflow-x: auto;
}

.kanban-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kcol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.kcol-head .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kcol-head .swatch {
  width: 8px; height: 8px; border-radius: 2px;
}

.kcol-count {
  font-size: 10px;
  color: var(--ink-dim);
  background: var(--bg-elev-2);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.ticket {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  cursor: grab;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.18s ease;
  user-select: none;
}

.ticket:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.ticket.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.ticket.moving {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.ticket-id { color: var(--ink-mute); }

.ticket-title {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.labels { display: flex; gap: 4px; flex-wrap: wrap; }
.label-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: lowercase;
  border: 1px solid;
}
.label-bug    { color: var(--red);    border-color: rgba(239,107,107,0.3);   background: rgba(239,107,107,0.08); }
.label-feat   { color: var(--blue);   border-color: rgba(122,169,255,0.3);   background: rgba(122,169,255,0.08); }
.label-ops    { color: var(--yellow); border-color: rgba(244,207,107,0.3);   background: rgba(244,207,107,0.08); }
.label-doc    { color: var(--green);  border-color: rgba(124,224,166,0.3);   background: rgba(124,224,166,0.08); }
.label-arch   { color: var(--purple); border-color: rgba(199,156,255,0.3);   background: rgba(199,156,255,0.08); }

.assignee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
}
.avatar {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
}
.avatar.agent { background: linear-gradient(135deg, #1a1240, #2a1d5a); border-color: var(--accent-line); color: var(--accent); }
.avatar.human { background: var(--bg-elev-2); color: var(--ink-mute); }

.priority-bar {
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  border-radius: 0 2px 2px 0;
}
.p-critical { background: var(--red); }
.p-required { background: var(--accent); }
.p-nice     { background: var(--yellow); }
.p-idea     { background: var(--ink-dim); }

/* drop indicator */
.drop-indicator {
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
  margin: 0;
}

/* ---------- Sections ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}

/* agents */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.agent-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.agent-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.agent-card .glyph {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
}

.agent-card .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.agent-card h4 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  font-weight: 600;
}

.agent-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.agent-card .handle {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  display: inline-block;
}

/* automation diagram */

.automation {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auto-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 880px) {
  .auto-flow {
    grid-template-columns: 1fr;
  }
  .auto-flow .arrow { transform: rotate(90deg); justify-self: center; }
}

.auto-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.auto-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auto-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auto-list li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--ink-dim);
  border-radius: 999px;
}

.arrow {
  display: grid;
  place-items: center;
  color: var(--ink-dim);
}

/* API section */

.api-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 880px) {
  .api-grid { grid-template-columns: 1fr; }
}

.api-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.api-point {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.api-point:last-child { border-bottom: 1px solid var(--line); }

.api-point .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 3px;
}

.api-point h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.api-point p { margin: 0; font-size: 13px; color: var(--ink-mute); line-height: 1.5; }

.code-block {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-mute);
  background: var(--bg);
}

.code-head .tabs { display: flex; gap: 16px; }
.code-head .tab {
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.code-head .tab.active { color: var(--ink); border-bottom-color: var(--accent); }

.code-body {
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre;
  color: var(--ink-mute);
}

.tk-key { color: var(--accent); }
.tk-str { color: var(--green); }
.tk-num { color: var(--blue); }
.tk-com { color: var(--ink-dim); font-style: italic; }
.tk-fn  { color: var(--yellow); }
.tk-method { color: var(--purple); font-weight: 600; }

/* install / quickstart */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.step h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 13px; color: var(--ink-mute); line-height: 1.5; }
.step .cmd {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.step .cmd .prompt { color: var(--ink-dim); }

/* feature row */

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; }
}

.feature {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 13px; color: var(--ink-mute); line-height: 1.5; }
.feature .ico { color: var(--accent); margin-bottom: 6px; }

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-q .toggle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin 0.2s ease;
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.55;
}
.faq-item.open .faq-a {
  max-height: 240px;
  margin-top: 12px;
}

/* CTA strip */

.cta-strip {
  background: linear-gradient(135deg, #1a1240, #0d0a1a 60%);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,92,255,0.2), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.cta-strip > * { position: relative; }

.cta-strip .h2 { margin-bottom: 12px; }

/* footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.foot-col h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-mute);
  padding: 4px 0;
}
.foot-col a:hover { color: var(--ink); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}

/* paw print accent */
.paw {
  position: absolute;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
}

/* density tweak */
.density-tight .section { padding: 64px 0; }
.density-loose .section { padding: 128px 0; }

/* run drawer (mock) */
.run-drawer {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  overflow: hidden;
}
.run-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elev);
}
.run-head .left { display: flex; gap: 10px; align-items: center; color: var(--ink-mute); }
.run-head .pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(124,224,166,0.4);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,224,166,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(124,224,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,224,166,0); }
}
.run-body {
  padding: 14px 16px;
  color: var(--ink-mute);
  height: 220px;
  overflow: hidden;
  position: relative;
}
.run-body .line { display: block; white-space: pre-wrap; }
.run-body .line.cmd { color: var(--accent); }
.run-body .line.ok  { color: var(--green); }
.run-body .line.dim { color: var(--ink-dim); }
.run-body .cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
