/* Neural Junkie landing — GitHub Pages */
:root {
  --bg-deep: #0d0f14;
  --bg-card: #141822;
  --bg-elevated: #1a1f2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #8b93a7;
  --accent: #e94560;
  --accent-dim: #c73a52;
  --glow: rgba(233, 69, 96, 0.35);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(233, 69, 96, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(83, 52, 131, 0.15), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Early-access / development notice */
.dev-banner {
  background: rgba(212, 168, 75, 0.09);
  border-bottom: 1px solid rgba(212, 168, 75, 0.28);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dev-banner-inner {
  padding: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.dev-banner strong {
  font-weight: 700;
  color: #e8c96b;
  letter-spacing: 0.02em;
}

.dev-banner span {
  color: var(--text-muted);
}

.dev-banner a {
  font-weight: 600;
  white-space: nowrap;
}

.dev-banner-highlight {
  font-weight: 600;
  color: var(--text);
}

/* Header */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 20px var(--glow);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background: var(--accent-dim);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(233, 69, 96, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Sections */
section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.highlights-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.workflow-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.workflow-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.card code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-deep);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(233, 69, 96, 0.25);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

.card-cta {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.card-link:hover {
  text-decoration: underline;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

/* Stack strip */
.stack-strip {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.stack-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stack-inner span {
  opacity: 0.9;
}

.stack-inner strong {
  color: var(--text);
  font-weight: 600;
}

/* Latest feature spotlight (landing) */
.latest-feature {
  scroll-margin-top: 5rem;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(233, 69, 96, 0.08), transparent 55%),
    var(--bg-deep);
}

.latest-feature-inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .latest-feature-inner {
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 2.5rem;
    align-items: stretch;
  }
}

.latest-feature-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.latest-feature-kicker time {
  font-variant-numeric: tabular-nums;
}

.latest-feature-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.latest-feature-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 38rem;
}

.latest-feature-list {
  margin: 0 0 1.5rem;
}

.latest-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.latest-feature-aside {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.latest-feature-aside-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.latest-feature-aside-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.latest-feature-aside-text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.latest-feature-aside-text code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-deep);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.latest-feature-aside .btn-sm {
  margin: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 2rem 0 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-deep));
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-inline: auto;
}

/* Desktop screenshot strip */
.screenshot-showcase {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.screenshot-showcase h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.screenshot-frame {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.demo-video-showcase {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.demo-video-showcase h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.demo-video-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .demo-video-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .demo-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-video-title {
  margin: 0;
  padding: 1rem 1rem 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.demo-video-blurb {
  margin: 0;
  padding: 0 1rem 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.demo-video-showcase .screenshot-frame video {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  height: auto;
  background: #0f0f12;
}

.screenshot-caption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.screenshot-actions {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.screenshot-actions .btn {
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
}

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list--tight {
  gap: 0.5rem;
}

.feature-list--tight li {
  font-size: 0.92rem;
}

.feature-list--wide {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  display: grid;
}

.feature-list--wide li {
  padding-left: 1.35rem;
}

.doc-strip {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.doc-strip-label {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .doc-strip-label {
    width: auto;
    margin-right: 0.35rem;
  }
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 999px;
}

/* ── Feature deep-dive pages (docs/features/*.html) ───────────────── */
.feature-deep {
  padding: 0 0 4rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.feature-deep-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.feature-deep-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.feature-deep-lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.feature-prose {
  max-width: 44rem;
}

.feature-prose h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.25rem;
  color: var(--text);
}

.feature-prose h2:first-of-type {
  margin-top: 0;
}

.feature-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.feature-prose p,
.feature-prose li {
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.feature-prose li {
  margin-bottom: 0.35rem;
}

.feature-prose a {
  font-weight: 600;
}

.feature-prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-card);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.feature-prose .repo-links {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-prose .repo-links h2 {
  margin-top: 0;
  font-size: 1rem;
}

.feature-prose .repo-links ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.feature-prose .repo-links li {
  margin-bottom: 0.5rem;
}

.feature-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.feature-nav h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.feature-nav-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-nav-grid a {
  display: block;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.feature-nav-grid a:hover {
  border-color: rgba(233, 69, 96, 0.35);
  text-decoration: none;
}

.feature-nav-grid a[aria-current="page"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(233, 69, 96, 0.25);
}

.feature-nav-grid a code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: transparent;
  border: none;
  padding: 0;
}

/* Release notes (landing teaser + release-notes.html anchors) */
.release-landing-preview {
  margin-top: 1.5rem;
  padding: 1.5rem 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 44rem;
}

.release-landing-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.release-landing-version {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--text);
}

.release-landing-version time {
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
}

.release-landing-summary {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.release-landing-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.release-install-table {
  width: 100%;
  max-width: 36rem;
  margin: 1rem 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.release-install-table th,
.release-install-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.release-install-table th {
  background: var(--bg-deep);
  color: var(--text-muted);
  font-weight: 600;
}

.release-jump {
  margin: 0 0 2.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  max-width: 44rem;
}

.release-jump-label {
  font-weight: 700;
  color: var(--text);
  margin-right: 0.25rem;
}

.release-jump a {
  font-weight: 600;
}

.feature-prose h2 .release-date {
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
}

.feature-prose hr.release-sep {
  margin: 2.75rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.feature-prose h2.release-version-heading {
  scroll-margin-top: 5.5rem;
}
