:root {
  --vibe-paper: #000000;
  --vibe-panel: rgba(5, 7, 10, 0.85);
  --vibe-panel-2: rgba(11, 16, 22, 0.92);
  --vibe-ink: #f5f7fb;
  --vibe-muted: #9aa8bb;
  --vibe-dim: #6f7b8c;
  --vibe-blue: #1537ff;
  --vibe-cyan: #00ffea;
  --vibe-green: #18ff5b;
  --vibe-magenta: #ff3f9f;
  --vibe-yellow: #ffe45c;
  --vibe-border: #3a3f4b;
  --vibe-border-soft: rgba(154, 168, 187, 0.28);
  --vibe-shadow: rgba(0, 255, 234, 0.12);
  --vibe-radius: 0;
  --vibe-page: min(72rem, calc(100vw - 2rem));
  color-scheme: dark;
  font-family: Consolas, Monaco, monospace;
  background: var(--vibe-paper);
  color: var(--vibe-ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--vibe-paper);
}

a {
  color: var(--vibe-blue);
}

code {
  font: inherit;
  color: var(--vibe-cyan);
}

.vibe-home {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--vibe-paper);
}

.vibe-site-header,
.vibe-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.45rem;
  padding: 0.8rem max(1rem, calc((100vw - 72rem) / 2 + 1rem));
  background: #000;
  border-bottom: 2px solid var(--vibe-border);
}

.vibe-site-footer {
  border-top: 2px solid var(--vibe-border);
  border-bottom: 0;
  color: var(--vibe-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.vibe-powered,
.vibe-powered a,
.vibe-footer-link {
  display: inline-flex;
  align-items: center;
}

.vibe-powered {
  gap: 0.55rem;
}

.vibe-powered a {
  color: var(--vibe-ink);
  text-decoration: none;
}

.vibe-powered img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  border: 2px solid var(--vibe-border);
  background: var(--vibe-panel);
  object-fit: cover;
}

.vibe-powered a:hover img,
.vibe-powered a:focus-visible img {
  border-color: var(--vibe-cyan);
  box-shadow: 0 0 0 3px var(--vibe-shadow);
}

.vibe-footer-link {
  color: var(--vibe-muted);
  text-decoration: none;
}

.vibe-footer-link:hover,
.vibe-footer-link:focus-visible {
  color: var(--vibe-cyan);
}

.vibe-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vibe-ink);
  text-decoration: none;
}

.vibe-logo-mark {
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--vibe-border);
  display: block;
  object-fit: cover;
  filter: none;
  box-shadow: none;
  background: var(--vibe-panel);
}

.vibe-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--vibe-ink);
}

.vibe-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vibe-nav a,
.vibe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.62rem 0.78rem;
  border: 2px solid var(--vibe-border);
  background: var(--vibe-panel);
  color: var(--vibe-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.vibe-nav a:hover,
.vibe-nav a:focus,
.vibe-button:hover,
.vibe-button:focus {
  background: rgba(11, 16, 22, 0.42);
  color: var(--vibe-cyan);
  border-color: var(--vibe-cyan);
  box-shadow: 0 0 0 3px var(--vibe-shadow);
  outline: none;
  transform: translateY(-1px);
}

.vibe-button-cyan,
.vibe-button-magenta,
.vibe-button-yellow {
  border-width: 2px;
  color: var(--vibe-ink);
  font-weight: 700;
  box-shadow: none;
}

.vibe-button-cyan {
  border-color: var(--vibe-cyan);
  background: rgba(0, 255, 234, 0.08);
}

.vibe-button-magenta {
  border-color: var(--vibe-border);
  background: var(--vibe-panel);
  color: var(--vibe-ink);
}

.vibe-button-yellow {
  border-color: var(--vibe-border);
  background: var(--vibe-panel);
  color: var(--vibe-ink);
}

.vibe-button-cyan:hover,
.vibe-button-cyan:focus,
.vibe-button-magenta:hover,
.vibe-button-magenta:focus,
.vibe-button-yellow:hover,
.vibe-button-yellow:focus {
  background: rgba(11, 16, 22, 0.42);
  color: var(--vibe-cyan);
}

main {
  min-width: 0;
}

.hero,
.dense-section,
.split-section,
.status-section,
.docs-strip {
  width: var(--vibe-page);
  margin: 0 auto;
}

.hero {
  display: block;
  min-height: auto;
  padding: 1.4rem 0 0;
}

.hero-copy,
.copy-panel,
.section-heading {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.hero-copy {
  width: min(100%, 52rem);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border-left: 0;
  position: relative;
}

.hero-copy::before {
  content: none;
}

.vibe-kicker {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vibe-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.kicker-cyan {
  color: var(--vibe-cyan);
}

.kicker-magenta {
  color: var(--vibe-cyan);
}

.kicker-yellow {
  color: var(--vibe-muted);
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--vibe-ink);
  text-shadow: none;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3.8vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: 0;
  color: var(--vibe-ink);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}

p,
li,
dd,
dt,
.module-card span,
.command-grid span {
  font-size: 15px;
  line-height: 1.55;
}

p {
  color: var(--vibe-muted);
  margin-bottom: 0;
}

ul,
ol {
  color: var(--vibe-muted);
  padding-left: 20px;
  margin-bottom: 0;
}

li + li {
  margin-top: 7px;
}

.hero-lede {
  max-width: 58ch;
  color: #d2dae4;
  font-size: 1.1rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
}

.vibe-code-frame,
.vibe-card,
.module-card,
.notice,
.command-grid article,
.status-card,
.copy-panel {
  border: 2px solid var(--vibe-border);
  background: var(--vibe-panel);
  box-shadow: none;
}

.hero-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.panel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-bottom: 2px solid var(--vibe-border);
  color: var(--vibe-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.cyan-bar {
  background: rgba(0, 255, 234, 0.08);
}

.magenta-bar {
  background: rgba(21, 55, 255, 0.16);
  color: var(--vibe-ink);
}

.yellow-bar {
  background: rgba(24, 255, 91, 0.08);
}

.panel-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid var(--vibe-border);
  background: #000;
  color: var(--vibe-cyan);
}

.fact-sheet {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-sheet div {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.fact-sheet div:last-child {
  border-bottom: 0;
}

.fact-sheet dt {
  color: var(--vibe-yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.fact-sheet dd {
  margin: 0;
  color: #fff;
}

.dense-section,
.split-section,
.status-section {
  padding: 2rem 0 0;
}

.compact {
  margin-bottom: 0;
}

.section-heading {
  width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
}

.dense-section > .three-column,
.dense-section > .module-grid,
.dense-section > .notice-row,
.dense-section > .command-grid,
.dense-section > .vibe-code-frame,
.status-section > .status-grid {
  margin-top: 1rem;
}

.dense-section > .vibe-code-frame {
  width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
}

.vibe-card,
.module-card,
.notice,
.command-grid article,
.status-card,
.copy-panel,
.vibe-code-frame {
  overflow: hidden;
}

.vibe-card h3,
.module-card strong,
.notice h3 {
  font-size: 0.98rem;
}

.vibe-card p,
.notice p,
.module-card span,
.copy-panel p {
  font-size: 0.92rem;
}

.copy-panel h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.8rem);
}

.panel-titlebar,
.pipeline-list strong,
.pipeline-list em,
.command-grid code,
.command-grid span {
  font-size: 0.86rem;
}

.three-column,
.notice-row,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vibe-card {
  min-height: 0;
  padding: 1rem;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.vibe-card:hover,
.module-card:hover,
.notice:hover,
.command-grid article:hover {
  border-color: rgba(0, 255, 234, 0.52);
  background: rgba(11, 16, 22, 0.42);
}

.vibe-card.cyan,
.notice.cyan {
  border-top: 2px solid var(--vibe-cyan);
}

.vibe-card.magenta,
.notice.magenta {
  border-top: 2px solid var(--vibe-blue);
}

.vibe-card.yellow,
.notice.yellow {
  border-top: 2px solid var(--vibe-green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 1rem;
  align-items: stretch;
}

.split-section.reverse {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
}

.copy-panel {
  padding: 1rem;
}

.command-panel,
.code-sample,
.one-liner-panel {
  overflow: hidden;
}

.pipeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-list li {
  display: grid;
  grid-template-columns: 52px minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.88rem 1rem;
  border-bottom: 1px solid var(--vibe-border);
}

.pipeline-list li:last-child {
  border-bottom: 0;
}

.pipeline-list span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--vibe-border);
  background: #000;
  color: var(--vibe-cyan);
  font-weight: 700;
  font-size: 0.78rem;
}

.pipeline-list strong {
  color: var(--vibe-ink);
  text-transform: uppercase;
}

.pipeline-list em {
  color: var(--vibe-muted);
  font-style: normal;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.module-card {
  min-height: 8.25rem;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  transition: border-color 120ms ease, background 120ms ease;
}

.module-card strong {
  color: var(--vibe-cyan);
  font-size: 1rem;
}

.module-card:nth-child(3n + 2) strong {
  color: var(--vibe-ink);
}

.module-card:nth-child(3n) strong {
  color: var(--vibe-ink);
}

.module-card span {
  color: var(--vibe-muted);
}

.notice {
  padding: 1rem;
}

pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  font: inherit;
  line-height: 1.55;
}

.code-key {
  color: var(--vibe-cyan);
  font-weight: 700;
}

.code-string {
  color: var(--vibe-green);
}

.code-comment {
  color: var(--vibe-dim);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.command-grid article {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.85rem;
  min-height: 5rem;
  padding: 1rem;
  border-left: 2px solid var(--vibe-border);
  transition: border-color 120ms ease, background 120ms ease;
}

.command-grid code {
  color: var(--vibe-cyan);
  overflow-wrap: anywhere;
}

.command-grid span {
  color: var(--vibe-muted);
}

.one-liner-panel {
  background: var(--vibe-panel);
}

.status-card {
  padding: 16px;
}

.status-card.stable {
  border-top: 2px solid var(--vibe-cyan);
}

.status-card.caution {
  border-top: 2px solid var(--vibe-green);
}

.status-card.risk {
  border-top: 2px solid var(--vibe-blue);
}

.docs-strip {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2rem 0 2.25rem;
}

.vibe-gallery-shell {
  width: var(--vibe-page);
  margin: 0 auto;
  padding: 1.4rem 0 2.25rem;
}

.vibe-gallery-shell h1 {
  margin: 0.5rem 0 1.5rem;
  font-size: clamp(2rem, 7vw, 4.5rem);
  text-transform: lowercase;
}

.vibe-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.vibe-gallery-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid var(--vibe-border);
  background: var(--vibe-panel);
  color: var(--vibe-ink);
  cursor: pointer;
  overflow: hidden;
}

.vibe-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  transition: filter 120ms ease, transform 120ms ease;
}

.vibe-gallery-item span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.82);
  color: var(--vibe-cyan);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  transform: translateY(100%);
  transition: transform 120ms ease;
}

.vibe-gallery-item:hover,
.vibe-gallery-item:focus-visible {
  border-color: var(--vibe-cyan);
  outline: none;
  box-shadow: 0 0 0 3px var(--vibe-shadow);
}

.vibe-gallery-item:hover img,
.vibe-gallery-item:focus-visible img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.02);
}

.vibe-gallery-item:hover span,
.vibe-gallery-item:focus-visible span {
  transform: translateY(0);
}

.vibe-history-dialog {
  width: min(34rem, calc(100vw - 2rem));
  border: 2px solid var(--vibe-border);
  background: #000;
  color: var(--vibe-ink);
  padding: 1rem;
}

.vibe-history-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.vibe-history-dialog h2 {
  margin: 0 2rem 0.75rem 0;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  text-transform: none;
}

.vibe-history-dialog p {
  color: #d2dae4;
}

.vibe-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--vibe-border);
  background: var(--vibe-panel);
  color: var(--vibe-ink);
  font: inherit;
  cursor: pointer;
}

.vibe-dialog-close:hover,
.vibe-dialog-close:focus-visible {
  border-color: var(--vibe-cyan);
  color: var(--vibe-cyan);
  outline: none;
}

@media (max-width: 1020px) {
  :root {
    --vibe-page: min(100vw - 24px, 900px);
  }

  .hero,
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .three-column,
  .notice-row,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vibe-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --vibe-page: calc(100vw - 20px);
  }

  .vibe-site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .vibe-site-footer {
    padding: 10px;
  }

  .vibe-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .vibe-nav a {
    min-height: 38px;
    text-align: center;
  }

  .hero {
    padding-top: 14px;
  }

  .copy-panel {
    padding: 14px;
  }

  .hero-copy {
    padding: 4px 0 10px;
  }

  h1 {
    font-size: 56px;
    text-shadow: none;
  }

  h2 {
    font-size: 30px;
  }

  .fact-sheet div,
  .pipeline-list li,
  .command-grid article {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  pre {
    padding: 12px;
    font-size: 12px;
  }

  .vibe-site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  :root {
    --vibe-page: calc(100vw - 16px);
  }

  .vibe-site-header,
  .vibe-site-footer {
    padding: 8px;
  }

  .vibe-logo {
    gap: 8px;
  }

  .vibe-logo-mark {
    width: 30px;
    height: 30px;
  }

  .vibe-title {
    font-size: 14px;
  }

  .vibe-nav {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .vibe-nav a,
  .vibe-button {
    width: 100%;
    min-height: 40px;
    padding: 8px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
    line-height: 0.92;
    text-shadow: none;
  }

  h2 {
    font-size: 26px;
  }

  p,
  li,
  dd,
  dt,
  .module-card span,
  .command-grid span {
    font-size: 14px;
  }

  .vibe-gallery {
    grid-template-columns: 1fr;
  }
}
