/* ── Page-local tokens ────────────────────────────────────────────────── */
:root {
  --code-blue: #4584b6;
  --code-purple: #8b4f9f;
  --code-string: #a25b00;
  --code-comment: #8f897c;
}

/* ── Droning On nav extras ────────────────────────────────────────────── */
.nav-anchors {
  display: flex; align-items: center; gap: 2px;
  padding-right: 14px; margin-right: 8px;
  border-right: 1px solid var(--hairline);
}
.nav-anchors a {
  padding: 6px 10px; font-size: 13px; color: var(--muted);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-anchors a:hover { color: var(--ink); background: rgba(20,17,13,.04); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 360px at 88% -10%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(700px 300px at 10% 110%, color-mix(in oklab, var(--code-blue) 9%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px; align-items: center;
}

.hero .eyebrow .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--code-green) 18%, transparent); }
  50%     { box-shadow: 0 0 0 6px color-mix(in oklab, var(--code-green) 0%, transparent); }
}

h1.headline {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
}
h1.headline .verb { font-weight: 400; color: var(--ink-2); }
h1.headline .obj  { color: var(--ink); }
h1.headline .ln   { display: block; }
.cursor {
  display: inline-block; width: .5ch; margin-left: 2px;
  background: var(--ink);
  color: transparent;
  animation: blink 1s steps(1) infinite;
  vertical-align: -0.06em;
}
@keyframes blink { 50% { background: transparent; } }

.lede {
  margin: 0 0 28px;
  max-width: 480px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}
.lede em { color: var(--ink); font-style: normal; font-weight: 500; }

/* CTA cluster (override base for hero) */
.hero .cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.hero .btn-primary {
  padding: 16px 24px;
  font-size: 16px;
  letter-spacing: -.005em;
}
.btn-primary .pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 3px 7px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 85%, white);
  color: var(--accent-ink);
  margin-left: 4px;
}
.hero .btn-secondary {
  padding: 13px 16px;
}
.btn-secondary .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5865F2; /* Discord blurple */
}

/* Social proof row */
.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  color: var(--muted); font-size: 13px;
}
.proof .pip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2);
}
.proof .pip b { font-weight: 600; color: var(--ink); }
.proof .pip .star { color: var(--accent); -webkit-text-stroke: .5px var(--ink); }
.proof .platforms { display: inline-flex; align-items: center; gap: 6px; }
.proof .platforms svg { width: 13px; height: 13px; }

/* Video frame */
.video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0e0c09;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-md);
}
.video-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1a1714, #14110d);
  color: rgba(255,255,255,.6);
  font-family: var(--font-mono); font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.video-bar .file { color: rgba(255,255,255,.78); }
.video-bar .file::before {
  content: "▸ "; color: var(--accent); margin-right: 2px;
}
.video-bar .rec { display: inline-flex; align-items: center; gap: 6px; }
.video-bar .rec i {
  width: 6px; height: 6px; border-radius: 50%; background: #e85a4f;
  animation: pulse-red 1.6s ease-in-out infinite;
}
@keyframes pulse-red { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #0a0907;
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 14px;
  pointer-events: none;
}
.video-overlay .ctrls { display: flex; gap: 8px; pointer-events: auto; }
.vctrl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(20,17,13,.72);
  color: white;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 11px;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.vctrl:hover { background: rgba(20,17,13,.92); transform: translateY(-1px); }
.vctrl svg { width: 12px; height: 12px; }

/* ── Section base override for this page ─────────────────────────────── */
section.s { padding: 88px 0; border-bottom: 1px solid var(--hairline); }
section.s .s-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 36px;
}
section.s .s-head .kicker {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted);
}
section.s .s-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1; letter-spacing: -.02em; font-weight: 700;
  max-width: 16ch;
}
section.s .s-head .more {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 0; padding: 0;
}
section.s .s-head .more:hover { color: var(--ink); transform: none; }

/* ── About ────────────────────────────────────────────────────────────── */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-copy h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1; letter-spacing: -.02em; margin: 0 0 18px;
}
.about-copy p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 14px; max-width: 48ch; }
.about-copy p.muted { color: var(--muted); }
.about-chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.about-chips span {
  font-size: 11.5px; padding: 5px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--card);
}

/* Editor card */
.editor {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.editor-tabs {
  display: flex; align-items: center;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hairline);
  padding: 0 10px;
  height: 36px;
}
.editor-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; margin-top: 6px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  font-size: 12px; color: var(--ink-2);
  position: relative; top: 1px;
}
.editor-tab .x { color: var(--muted); }
.editor-tab .pyicon {
  width: 12px; height: 12px;
  background: linear-gradient(135deg, var(--code-blue) 50%, var(--accent) 50%);
  border-radius: 3px; flex-shrink: 0;
}
.editor-body {
  display: grid; grid-template-columns: 32px 1fr;
  background: var(--card);
}
.editor-gutter {
  text-align: right; padding: 14px 8px 14px 0;
  color: var(--muted); user-select: none;
  border-right: 1px solid var(--hairline);
}
.editor-gutter div { font-variant-numeric: tabular-nums; line-height: 1.7; }
.editor-code {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}
.tok-com { color: var(--code-comment); font-style: italic; }
.tok-kw  { color: var(--code-purple); }
.tok-fn  { color: var(--code-blue); }
.tok-str { color: var(--code-string); }
.tok-num { color: var(--code-string); }
.tok-op  { color: var(--ink-2); }
.tok-tag { color: var(--code-green); }
.editor-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--muted);
}
.editor-status .ok { color: var(--code-green); }
.editor-status .ok::before { content: "✓ "; }

/* ── Features ─────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--card);
  padding: 28px 24px 26px;
  display: flex; flex-direction: column;
  gap: 8px;
  min-height: 200px;
  transition: background .2s;
  position: relative;
}
.feature:hover { background: var(--paper-2); }
.feature .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.feature .num b { color: var(--ink); }
.feature h3 {
  margin: 0 0 4px;
  font-size: 18px; font-weight: 600; letter-spacing: -.01em;
  line-height: 1.25;
}
.feature p {
  margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5;
}
.feature.featured {
  background: var(--ink);
  color: var(--paper-2);
}
.feature.featured h3, .feature.featured .num b { color: var(--paper-2); }
.feature.featured .num,
.feature.featured p { color: rgba(255,255,255,.62); }
.feature.featured:hover { background: #000; }
.feature.featured .chip {
  display: inline-flex; align-self: flex-start;
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 8px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}

/* ── Screenshots ──────────────────────────────────────────────────────── */
.shots {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}
.shot { position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--hairline);
  aspect-ratio: 16/9;
  transition: transform .25s, box-shadow .25s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shot .cap {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(20,17,13,.78); color: white;
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.shot:hover .cap { opacity: 1; transform: translateY(0); }
.shot.span6 { grid-column: span 6; }
.shot.span4 { grid-column: span 4; }
.shot.span3 { grid-column: span 3; }
.shot.span8 { grid-column: span 8; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; }
.faq-grid .label {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  position: sticky; top: 80px; align-self: start;
}
.faq-grid .label-h2 {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 8ch;
}
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  background: transparent; border: 0;
  text-align: left;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--ink);
  cursor: pointer; letter-spacing: -.005em;
}
.faq-q:hover { color: var(--ink-2); }
.faq-q .chev {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--muted);
  transition: transform .2s;
}
.faq-item[open] .faq-q .chev { transform: rotate(45deg); color: var(--ink); }
.faq-a {
  padding: 0 4px 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 64ch;
}
.faq-a code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--paper-2); padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--hairline);
}

/* ── Community ────────────────────────────────────────────────────────── */
.community {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.clink {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.clink:hover { transform: translateY(-1px); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.clink-l h3 {
  margin: 0 0 4px;
  font-size: 16px; font-weight: 600; letter-spacing: -.005em;
}
.clink-l p { margin: 0; color: var(--muted); font-size: 13.5px; }
.clink-l .meta {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.clink-r {
  width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  color: var(--ink-2);
  transition: background .15s, color .15s, transform .2s;
}
.clink:hover .clink-r { background: var(--ink); color: var(--paper-2); transform: translate(2px,-2px); }

/* ── News feed ────────────────────────────────────────────────────────── */
.news-feed { margin-top: 48px; }
.news-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.news-head .kicker { color: var(--ink); font-size: 12px; }
.news-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--hairline);
}
.news-item { border-bottom: 1px solid var(--hairline); }
.news-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "meta    arrow"
    "title   arrow"
    "snippet arrow";
  column-gap: 18px; row-gap: 6px;
  padding: 20px 4px;
  transition: background .15s;
}
.news-item a:hover { background: color-mix(in oklab, var(--paper-2) 70%, transparent); }
.news-meta {
  grid-area: meta;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11.5px; color: var(--muted);
}
.news-meta .sep { opacity: .5; }
.news-title {
  grid-area: title;
  margin: 0;
  font-size: 17px; font-weight: 600;
  letter-spacing: -.005em; line-height: 1.3;
  color: var(--ink);
}
.news-snippet {
  grid-area: snippet;
  margin: 0; max-width: 72ch;
  font-size: 14.5px; line-height: 1.55;
  color: var(--muted);
}
.news-arrow {
  grid-area: arrow; align-self: center;
  width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink-2);
  transition: background .15s, color .15s, transform .2s;
  flex-shrink: 0;
}
.news-item a:hover .news-arrow {
  background: var(--ink); color: var(--paper-2);
  transform: translate(2px,-2px);
}

/* ── Bottom CTA banner ────────────────────────────────────────────────── */
.endcta {
  padding: 96px 0;
  background:
    radial-gradient(900px 360px at 80% 30%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
    var(--ink);
  color: var(--paper-2);
  text-align: center;
  position: relative; overflow: hidden;
}
.endcta::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.endcta h2 {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05; letter-spacing: -.025em; font-weight: 700;
}
.endcta p { position: relative; margin: 0 auto 28px; color: rgba(255,255,255,.7); font-size: 17px; max-width: 56ch; }
.endcta .btn-primary {
  position: relative;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 28px rgba(0,0,0,.45);
}
.endcta .btn-primary:hover { background: color-mix(in oklab, var(--accent) 92%, white); }
.endcta .btn-primary .pill {
  background: var(--ink); color: var(--accent);
}
.endcta .meta {
  position: relative;
  margin-top: 18px; font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero { padding: 52px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-grid .label { position: static; }
  .community { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(6, 1fr); }
  .shot.span6, .shot.span4, .shot.span8, .shot.span3 { grid-column: span 6; }
  section.s { padding: 60px 0; }
  .nav-anchors { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot.span6, .shot.span4, .shot.span8, .shot.span3 { grid-column: span 1; }
  h1.headline { font-size: 40px; }
}
